SHARE
TWEET

Untitled

a guest Dec 21st, 2009 247 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <advancedsettings>  
  2.   <tvshowmatching append="yes">
  3.        
  4.                 <!--
  5.                 ########################################################################################
  6.                 V0.1 - 05/05/2009 - Initial Upload
  7.                 V0.2 - 08/05/2009 - TPZ matches now require season folder. Fixes some false positives.
  8.                 V0.3 - 16/05/2009 - Support for /season 5/Lost - 5 x 05.mkv
  9.                 V0.4 - 28/05/2009 - Cater for cross platform difference in paths \/
  10.                 V0.5 - 03/06/2009 - Added in regex to match some awfulTV naming that has no season.
  11.                                                                                                 This release marks 99% complete of the google scraped 10,000+ missed eps by XBMC default.
  12.                                                                                                 This will always be the last regex in the list and may product false positives.
  13.                                                                                                 Use with care.
  14.                 V0.6 - 06/06/2009 - New component. Commonly missed movie stacking REGEX.
  15.                                                                                                 Big caveat, will NOT fix movies already in the library. To fix completely remove the multiple movie entries and rescan.
  16.                 V0.7 - 08/06/2009 - Added excludefromscan section. Do not catalog anything in a folder called extras.
  17.                                                                                                 Using the expected TV folder naming structure allows the TV show "Extras".
  18.                 V0.8 - 10/06/2009 - After a IRC discussion with cptspiff and mgc I release this version to cater for
  19.                                                                                                 TOPAZ releases without requiring a set folder structure.
  20.                                                                                                 This should also handle Topaz which are still in rar format.
  21.                                                                                                 Please report back on success as I am working only from data scraped from google.                                                                                              
  22.                                                                                                                                                                                                
  23.                                                                                                
  24.                 ########################################################################################
  25.                 This REGEX is EXPERIMENTAL and may in places require a strict folder structure.
  26.                                                                                                                                 Use at your own risk.
  27.                 I specifically uses multiple REGEX rather than try to build one REGEX to rule the all.
  28.                 This wastes CPU cycles but allows easier bug finding, refining and end user understanding
  29.                 The order they run is important. It will never catch all episodes.
  30.                 Since were trying to deal with bad naming it could result in false positives.
  31.                 Comments and submissions welcome but where posible try to keep it simple.
  32.                 If in doubt use two simple REGEX rather than one complex one.
  33.                 ########################################################################################
  34.                 To install this REGEX create a text file called advancedsettings.xml
  35.                 Copy the contents of this into this file and place it in the Userdata folder
  36.                 ########################################################################################
  37.                 -->
  38.          
  39.         <!--
  40.                 #######################################################################################
  41.                 This section uses a traditional file only based approach and catches some common names
  42.                 #######################################################################################
  43.                 -->            
  44.  
  45.                 <!--  File name format: frng101-notv.avi  -->
  46.                 <regexp>[.a-z](\d\d?)(\d\d)-notv([^/\\]*)</regexp>
  47.          
  48.         <!--
  49.                 #######################################################################################
  50.                 This section uses a traditional file only based approach and attempts to cater for
  51.                 ultra lame TPZ Topaz naming scheme.
  52.                 This has been tested offline against 1031 googled sample filenames with 1023 matches.
  53.                 The remaining dont match as they are just plain wrong naming.
  54.                 The order they run in is VITAL. Do not run one without the other.
  55.                 #######################################################################################
  56.                 -->    
  57.        
  58.                 <!--  File name format: tzp-SPECIFICSHOW12324.avi      
  59.                                         This attempts to cater for some odditys -->
  60.                
  61.                 <regexp>[/\\]tpz-(?:24|30rock|4400)(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>
  62.                                        
  63.                 <!--  File name format: tzp-show12324.avi       -->                    
  64.                 <regexp>[/\\]tpz-[^\d]*(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>
  65.                                  
  66.                 <!--
  67.                 #######################################################################################
  68.                 This section takes the season number from the folder name and ep number from video file
  69.                 For best results use tvshow.nfo method along with show/season x/episodes
  70.                 #######################################################################################
  71.                 -->
  72.  
  73.                 <!--  File name format: tzp-show123.avi commented out as file only version being tested
  74.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\]tpz-.*?\1(\d\d)([^/\\]*)</regexp>  -->
  75.                
  76.                 <!--  File name format: /UFO/Season 1/02.Computer.Affair.divx e.g. lame sequntial numbering witout season  -->
  77.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\](\d\d?)[^\w]([^/\\]*)</regexp>            
  78.                
  79.                 <!--  File name format: /Ulysses 31/Season 1/Ulysses 31 E12 Trapped Between Fire And Ice.avi e.g. lame sequntial numbering witout season  -->
  80.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]ep?\.?(\d\d?)[^\w]([^/\\]*)</regexp>              
  81.                
  82.                 <!--  File name format: /The Chronicles of Narnia/Season 1/Chronicles.Of.Narnia.01.The.Lion.The.Witch.And.The.Wardrobe.episode.6.DVDRip.DivX-moviesfreak.avi  -->
  83.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]episode[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>       
  84.  
  85.                 <!--  File name format: /When We Left Earth The NASA Missions/Season 1/when.we.left.earth.the.nasa.missions.part.3.hdtv.xvid-fqm.avi -->
  86.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]part[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>  
  87.                
  88.                 <!--  File name format: /The Young Indiana Jones Chronicles/Season 1/The.Young.Indiana.Jones.Chronicles.Chapter.01.My.First.Adventure.DVDRip.XviD-SAiNTS.avi  -->
  89.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]chapter[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>       
  90.                
  91.                 <!--  File name format: /Action/Season 1/Action101 Pilot.avi  -->
  92.                 <!--  Last (?!.*]) to deal with anime numbering producing false positives. not a perfect solution  -->
  93.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?\1(\d\d)(?!.*])</regexp>
  94.  
  95.                 <!--  File name format: /season 5/Lost - 5 x 05.mkv  -->
  96.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?\1[^\w]?x[^\w]?(\d\d?)([^/\\]*)</regexp>
  97.                
  98.                 <!--  File name format: /Season 1/Grange Hill S01xE01.avi  -->
  99.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?s0?\1[ex]{0,2}(\d{1,2})([^/\\]*)</regexp>              
  100.                
  101.                 <!--  File name format: /Season 1/the_scene_xvid_episode_8.avi
  102.                                         This REGEX has huge potential for false positives but catches alot of the left over dross.
  103.                                         Suggest commenting it out if you are unsure  -->
  104.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\][^\d]+[\. _-](\d{1,2})[\. _-][^\d]+</regexp>      
  105.   </tvshowmatching>
  106.  
  107.   <moviestacking append="yes">
  108.        
  109.         <!--  XBMC does an excellent job on stacking natively so this extra list will likely always be short.
  110.                                 Essentially it caters for a few edge cases only. It should be relatively safe to add regardless. -->
  111.                                        
  112.     <regexp>done[ _\.-](\d)[ _\.-]</regexp>
  113.   </moviestacking>
  114.  
  115.   <video>
  116.   <excludefromscan append="yes">
  117.     <regexp>[/\\]extras[/\\](?!season)</regexp>
  118.   </excludefromscan>
  119.   </video>
  120.  
  121. </advancedsettings>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top