Kodi Community Forum
Removing specific file formats from xbmc - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Removing specific file formats from xbmc (/showthread.php?tid=171680)



Removing specific file formats from xbmc - discdog - 2013-08-20

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?


RE: Removing specific file formats from xbmc - wsnipex - 2013-08-20

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>



RE: Removing specific file formats from xbmc - spiff - 2013-08-20

your original file would have worked fine if you'd format the xml properly..


RE: Removing specific file formats from xbmc - ivan - 2013-08-20

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


RE: Removing specific file formats from xbmc - spiff - 2013-08-20

use the example given above and replace remove with add (plus fix up the xml); see http://wiki.xbmc.org/index.php?title=Advancedsettings.xml#.3Cmusicextensions.3E


RE: Removing specific file formats from xbmc - ivan - 2013-08-20

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)


RE: Removing specific file formats from xbmc - artrafael - 2013-08-21

You did a mix-and-match of the two examples. Use: <musicextensions> with <add>


RE: Removing specific file formats from xbmc - ivan - 2013-08-21

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