Talk:UserData/advancedsettings.xml

This forum user has come up with a very comprehensive regex for matching TV shows:

http://forum.xbmc.org/showpost.php?p=347183&postcount=17

By default, XBMC's matching leaves much to be desired. Should this example be included in the main page?

<!-- V0.1 - 05/05/2009 Initial Upload

V0.2 - 08/05/2009 TPZ matches now require season folder. Fixes some false positives.

V0.3 - 16/05/2009 Support for /season 5/Lost - 5 x 05.mkv

V0.4 - 28/05/2009 Cater for cross platform difference in paths i.e. \/

V0.5 - 03/06/2009 Added regex to match some awful TV naming that has no season. This release marks 99% completion rate of google scraped XBMC missed eps (10,000+ ). The last regex in the list and may product false positives. Use with caution.

V0.6 - 06/06/2009 New component. Commonly missed movie stacking REGEX. Big caveat, will NOT fix movies already in the library. To fix completely remove the multiple movie entries and rescan.

V0.7 - 08/06/2009 Added excludefromscan section. Do not catalog anything in a folder called extras. Using the expected TV folder naming structure still allows the TV show "Extras". Note: This does not work for me but does for other users. Please report back your experiences.

V0.8 - 10/06/2009 After a IRC discussion with cptspiff and mgc I release this version to cater for TOPAZ releases but with NO REQUIRED FOLDER STRUCTURE. This should also handle Topaz which are still in rar format. Please report back on success as I am working only from data scraped from google.

V0.9 - 28/06/2009 Default XBMC REGEX producing false positives with TPZ. To deal with this we now have both prepend and append REGEX.

V1.0 - 30/10/2009 Replaced some of the stacking regex removed in commit 24060. WARNING this may break serials support. In general I am not happy with this new REGEX and it needs more work. This file also includes some general XBMC settings I use. It would be beter if i didnt include these settings but doing so makes it easier for me. Delete them if they are not to your taste.

V1.1 - 11/11/2009 General cleanup in preparation for pastebin. This REGEX is EXPERIMENTAL and may require a strict folder structure.

I specifically use multiple REGEX rather than try to build one REGEX to rule them all. This wastes CPU cycles but allows easier bug finding, refining and end user understanding. The order they run is important. It will never catch all episodes. Since were trying to deal with bad naming it could result in false positives. Comments and submissions welcomed but where posible try to keep it simple. If in doubt use two simple REGEX rather than one complex one.
 * Use at your own risk*

To install this REGEX create a text file called advancedsettings.xml Copy the contents of this into this file and place it in the Userdata folder Restart XBMC

or

Download this file from pastebin and rename to advancedsettings.xml -->

true

true false false 100

 [/\\]tpz-(?:24|30rock|4400)(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\. [/\\]tpz-[^\d]*(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\. 

[.a-z](\d\d?)(\d\d)-notv([^/\\]*)

[/\\]tpz-(?:24|30rock|4400)(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\. [/\\]tpz-[^\d]*(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.

[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\](\d\d?)[^\w]([^/\\]*)

[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]ep?\.?(\d\d?)[^\w]([^/\\]*)

[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]episode[^\w]?(\d\d?)[^\w]([^/\\]*)

[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]part[^\w]?(\d\d?)[^\w]([^/\\]*)

[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]chapter[^\w]?(\d\d?)[^\w]([^/\\]*)

[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?\1(\d\d)(?!.*])

[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?\1[^\w]?x[^\w]?(\d\d?)([^/\\]*)

[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?s0?\1[ex]{0,2}(\d{1,2})([^/\\]*)

[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\][^\d]+[\. _-](\d{1,2})[\. _-][^\d]+

 done[ _\.-](\d)[ _\.-] [ ._-]+(0?[a-c1-3])[ ._-]([^/\\]*) (?<!\d)(\d\d?)\.\w{3,4}$

 [/\\]extras[/\\](?!season)

uzypvkyq
[URL=http://qroalmoa.com]mezkcmfa[/URL] euoocfni  lqzdvxfg http://cmadahzj.com fkcyjkap fdbwqvds