Removing specific file formats from xbmc
#1
Hi all,

XBMC newbie here. Didn't see this in the forum search but perhaps I missed.

I want to remove all the apple lossless files from XBMC.

I store both flac and apple loseless (and always rip to both) in my music directory. The apple lossless are just there from my gf's nano. I want xbmc to only add flacs and more specifically to remove the m4as that it has already added.

I thought that creating an advancedsettings.xml file like this:
<advancedsettings>
<musicextensions>
<remove>.m4a</remove
<musicextensions>
</advancedsettings>

would take care of the problem but it seems to have had no effect.

Suggestions?
Reply
#2
Code:
<advancedsettings>
<audio>
  <!-- Regular expressions that if evaluated to true won't be added to library. -->
  <excludefromscan>
    <regexp>\.m4a$</regexp>
  </excludefromscan>
  <!-- Regular expressions that if evaluated to true won't be displayed in Files View -->
  <excludefromlisting>
    <regexp>\.m4a$</regexp>
  </excludefromlisting>
</audio>
</advancedsettings>
Reply
#3
your original file would have worked fine if you'd format the xml properly..
Reply
#4
sorry for dropping in, but i have similar question:
how to include specific file format?
let me explain:
- I only use file mode (without scrappers)
- my music is organised like this: ...MUSIC/COLDPLAY/X&Y/ - in that folder i have all songs from that album, but also I have music videos that Coldplay made for that album

When I add that album to my music "library" - XBMC only adds file with extension .m4a (apple lossless music format)
How can I make XBMC to include .mp4 video files into my music library?

I can add the same folder to my Video library - but there I can only see .mp4 files but not .m4a files.
I hope I've explained my "problem" correctly - if not, just say and I'll provide aditional info.

Tnx in advance
Reply
#5
use the example given above and replace remove with add (plus fix up the xml); see http://wiki.xbmc.org/index.php?title=Adv...ensions.3E
Reply
#6
I've tried something like this:
<advancedsettings>
<audio>
<!-- Regular expressions that if evaluated to true won't be added to library. -->
<add>
<regexp>\.mp4$</regexp>
</add>
<!-- Regular expressions that if evaluated to true won't be displayed in Files View -->
<add>
<regexp>\.mp4$</regexp>
</add>
</audio>
</advancedsettings>

but no luck Sad

Can you please tell me what is wrong in this code
(I did make advancedsettings.xml file and I've placed it in this folder: C:\Users\ethan\AppData\Roaming\XBMC\userdata)
Reply
#7
You did a mix-and-match of the two examples. Use: <musicextensions> with <add>
Reply
#8
EXCELLENT!!!

I'd like to thank you spiff and artrafael for your help!
I manage to do exactly what I wanted with this code:

<advancedsettings>
<musicextensions>
<add>.mp4</add>
</musicextensions>
</advancedsettings>

XBMC ROCKS!!! Smile
Tnx
Reply



Logout Mark Read Team Forum Stats Members Help
Removing specific file formats from xbmc0
This forum uses Lukasz Tkacz MyBB addons.