[WINDOWS] help with regexp to exclude files
#1
Question 
Hi I have done a search but could not find exactly what I was looking for.

I am trying to use the advancedsettings.xml file to exclude some file patterns from being included in the library.

The file patterns I want to exclude are both (in normal dos ascii type format):

*utorrentpartfile*.*
&
*sample*.*

I have Windows SVN build rev23333 and so far I tried the following:

Quote:<advancedsettings>
<loglevel>1</loglevel>
<video>
<excludefromscan>
<regexp>[ _\.-](uTorrentPartFile)[ _\.-]</regexp>
<regexp>[ _\.-](sample)[ _\.-]</regexp>
</excludefromscan>
<excludefromlisting>
<regexp>[ _\.-](uTorrentPartFile)[ _\.-]</regexp>
<regexp>[ _\.-](sample)[ _\.-]</regexp>
</excludefromlisting>
</video>
</advancedsettings>

As you can see the problem is I have no idea of the regexp syntax that is required only stumbled across the above syntax from another thread. I have checked the link:
http://www.xbmc.org/wiki/?title=Regular_...9_Tutorial
but not being a programmer I was not able to make head nor tails of it! Smile

Could someone please help with the correct syntax I should be using there??

Thanks in advance!
PS: I have checked my log and the advancedsettings.xml file is being read.
Reply
#2
<regexp>utorrentpartfile</regexp>
<regexp>sample</regexp>

This will pick up anything with that string of text in the name. If you want to restrict it to filenames only, add [^\\/]* after it.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Thanks jmarshall!! That seems to be working. One question though: will this automatically remove the entries that have already been added to the library or do I have to remove them all manually?

Thanks!
Reply
#4
won't affect already scanned items.
Reply
#5
iirc - sample files should be excluded by default? Certainly they are in my installs and i don't recall adding regexp's for them.
Reply
#6
they are.
Reply
#7
I can't get this to work:

tried everything you seem to say at least I think I have. If you actually know how then plz write exactly how! thanks
Reply
#8
Sorry to resurrect an old thread but it seemed I'm having similar issues.

Running:
OS X 10.6.4
XBMC 9.11 R26018

I've gone through some of my dvd's creating 480i and iPod versions using Handbrake. My filenaming is as follows:

TV Shows\Breaking Bad\Breaking Bad.s01e04.iPod_h264.m4v
TV Shows\Breaking Bad\Breaking Bad.s01e04.480i_h264.m4v
Movies\Green Zone.iPod_h264.m4v
Movies\Green Zone.480i_h264.m4v

My advancedsettings.xml file properly removes the iPod versions of movies but not under TV Shows in my XBMC menu. Below is my advancedsettings file:

<advancedsettings>
<loglevel>1</loglevel>
<video>
<excludefromscan>
<regexp>[-\._ ](iPod)[-\._ ]</regexp>
</excludefromscan>
<excludefromlisting>
<regexp>[-\._ ](iPod)[-\._ ]</regexp>
</excludefromlisting>
</video>
</advancedsettings>


Log available here:
<a href="http://pastebin.ubuntu.com/531583/">http://pastebin.ubuntu.com/531583/</a>

Thanks!
Reply
#9
Reusing my old thread to ask for REGEX syntax for excluding all rar files (I don't want rar movies to be included in the library).

thanks in advance
Reply

Logout Mark Read Team Forum Stats Members Help
[WINDOWS] help with regexp to exclude files0