Advertisement
Guest User

Untitled

a guest
Dec 21st, 2009
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.15 KB | None | 0 0
  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.                                                
  16.         ########################################################################################
  17.         This REGEX is EXPERIMENTAL and may in places require a strict folder structure.
  18.                                                                 Use at your own risk.
  19.         I specifically uses multiple REGEX rather than try to build one REGEX to rule the all.
  20.         This wastes CPU cycles but allows easier bug finding, refining and end user understanding
  21.         The order they run is important. It will never catch all episodes.
  22.         Since were trying to deal with bad naming it could result in false positives.
  23.         Comments and submissions welcome but where posible try to keep it simple.
  24.         If in doubt use two simple REGEX rather than one complex one.
  25.         ########################################################################################
  26.         To install this REGEX create a text file called advancedsettings.xml
  27.         Copy the contents of this into this file and place it in the Userdata folder
  28.         ########################################################################################
  29.         -->
  30.      
  31.     <!--
  32.         #######################################################################################
  33.         This section uses a traditional file only based approach and catches some common names
  34.         #######################################################################################
  35.         -->    
  36.  
  37.        
  38.         <!--  File name format: frng101-notv.avi  -->
  39.         <regexp>[.a-z](\d\d?)(\d\d)-notv([^/\\]*)</regexp>
  40.      
  41.      
  42.         <!--
  43.         #######################################################################################
  44.         This section takes the season number from the folder name and ep number from video file
  45.         For best results use tvshow.nfo method along with show/season x/episodes
  46.         #######################################################################################
  47.         -->
  48.  
  49.         <!--  File name format: tzp-show123.avi  -->
  50.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\]tpz-.*?\1(\d\d)([^/\\]*)</regexp>
  51.        
  52.         <!--  File name format: /UFO/Season 1/02.Computer.Affair.divx e.g. lame sequntial numbering witout season  -->
  53.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\](\d\d?)[^\w]([^/\\]*)</regexp>    
  54.        
  55.         <!--  File name format: /Ulysses 31/Season 1/Ulysses 31 E12 Trapped Between Fire And Ice.avi e.g. lame sequntial numbering witout season  -->
  56.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]ep?\.?(\d\d?)[^\w]([^/\\]*)</regexp>      
  57.        
  58.         <!--  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  -->
  59.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]episode[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>   
  60.  
  61.         <!--  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 -->
  62.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]part[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>  
  63.        
  64.         <!--  File name format: /The Young Indiana Jones Chronicles/Season 1/The.Young.Indiana.Jones.Chronicles.Chapter.01.My.First.Adventure.DVDRip.XviD-SAiNTS.avi  -->
  65.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]chapter[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>   
  66.        
  67.         <!--  File name format: /Action/Season 1/Action101 Pilot.avi  -->
  68.         <!--  Last (?!.*]) to deal with anime numbering producing false positives. not a perfect solution  -->
  69.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?\1(\d\d)(?!.*])</regexp>
  70.  
  71.         <!--  File name format: /season 5/Lost - 5 x 05.mkv  -->
  72.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?\1[^\w]?x[^\w]?(\d\d?)([^/\\]*)</regexp>
  73.        
  74.         <!--  File name format: /Season 1/Grange Hill S01xE01.avi  -->
  75.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?s0?\1[ex]{0,2}(\d{1,2})([^/\\]*)</regexp>      
  76.        
  77.         <!--  File name format: /Season 1/the_scene_xvid_episode_8.avi
  78.                     This REGEX has huge potential for false positives but catches alot of the left over dross.
  79.                     Suggest commenting it out if you are unsure  -->
  80.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\][^\d]+[\. _-](\d{1,2})[\. _-][^\d]+</regexp>  
  81.   </tvshowmatching>
  82.  
  83.   <moviestacking append="yes">
  84.    
  85.     <!--  XBMC does an excellent job on stacking natively so this extra list will likely always be short.
  86.                 Essentially it caters for a few edge cases only. It should be relatively safe to add regardless. -->
  87.                    
  88.     <regexp>done[ _\.-](\d)[ _\.-]</regexp>
  89.   </moviestacking>
  90.  
  91. </advancedsettings>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement