Advertisement
Guest User

Untitled

a guest
Dec 21st, 2009
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.22 KB | None | 0 0
  1. <!--
  2.         ########################################################################################
  3.         V0.1 - 05/05/2009 - Initial Upload
  4.         V0.2 - 08/05/2009 - TPZ matches now require season folder. Fixes some false positives.
  5.         V0.3 - 16/05/2009 - Support for /season 5/Lost - 5 x 05.mkv
  6.         V0.4 - 28/05/2009 - Cater for cross platform difference in paths \/
  7.         V0.5 - 03/06/2009 - Added regex to match some awful TV naming that has no season.
  8.                        This release marks 99% completion rate of google scraped XNMC missed eps (10,000+ ).
  9.                        This will always be the last regex in the list and may product false positives.
  10.                        Use with care.
  11.         V0.6 - 06/06/2009 - New component. Commonly missed movie stacking REGEX.
  12.                        Big caveat, will NOT fix movies already in the library.
  13.                        To fix completely remove the multiple movie entries and rescan.
  14.         V0.7 - 08/06/2009 - Added excludefromscan section. Do not catalog anything in a folder called extras.
  15.                        Using the expected TV folder naming structure still allows the TV show "Extras".
  16.         V0.8 - 10/06/2009 - After a IRC discussion with cptspiff and mgc I release this version to cater for
  17.                        TOPAZ releases but with NO REQUIRED FOLDER STRUCTURE.
  18.                        This should also handle Topaz which are still in rar format.
  19.                        Please report back on success as I am working only from data scraped from google.
  20.         V0.9 - 28/06/2009 - Default XBMC REGEX producing false positives with TPZ.
  21.                                                 To deal with this we now have both prepend and append REGEX.
  22.                        Use with care I have only lightly tested this.    
  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. <advancedsettings>  
  41. <tvshowmatching action="prepend">
  42.  
  43.    
  44.         <!--  File name format: tzp-SPECIFICSHOW12324.avi  
  45.          This attempts to cater for some odditys -->
  46.        
  47.         <regexp>[/\\]tpz-(?:24|30rock|4400)(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>
  48.                    
  49.         <!--  File name format: tzp-show12324.avi   -->        
  50.         <regexp>[/\\]tpz-[^\d]*(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>
  51.                  
  52.  
  53.   </tvshowmatching>
  54.  
  55.   <tvshowmatching action="append">
  56.    
  57.              
  58.     <!--
  59.         #######################################################################################
  60.         This section uses a traditional file only based approach and catches some common names
  61.         #######################################################################################
  62.         -->    
  63.  
  64.         <!--  File name format: frng101-notv.avi  -->
  65.         <regexp>[.a-z](\d\d?)(\d\d)-notv([^/\\]*)</regexp>
  66.      
  67.     <!--
  68.         #######################################################################################
  69.         This section uses a traditional file only based approach and attempts to cater for
  70.         ultra lame TPZ Topaz naming scheme.
  71.         This has been tested offline against 1031 googled sample filenames with 1023 matches.
  72.         The remaining dont match as they are just plain wrong naming.
  73.         The order they run in is VITAL. Do not run one without the other.
  74.         #######################################################################################
  75.         -->
  76.    
  77.         <!--  File name format: tzp-SPECIFICSHOW12324.avi  
  78.          This attempts to cater for some odditys -->
  79.        
  80.         <regexp>[/\\]tpz-(?:24|30rock|4400)(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>
  81.                    
  82.         <!--  File name format: tzp-show12324.avi   -->        
  83.         <regexp>[/\\]tpz-[^\d]*(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>
  84.                  
  85.         <!--
  86.         #######################################################################################
  87.         This section takes the season number from the folder name and ep number from video file
  88.         For best results use tvshow.nfo method along with show/season x/episodes
  89.         #######################################################################################
  90.         -->
  91.  
  92.         <!--  File name format: tzp-show123.avi commented out as file only version being tested
  93.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\]tpz-.*?\1(\d\d)([^/\\]*)</regexp>  -->
  94.        
  95.         <!--  File name format: /UFO/Season 1/02.Computer.Affair.divx e.g. lame sequntial numbering witout season  -->
  96.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\](\d\d?)[^\w]([^/\\]*)</regexp>    
  97.        
  98.         <!--  File name format: /Ulysses 31/Season 1/Ulysses 31 E12 Trapped Between Fire And Ice.avi e.g. lame sequntial numbering witout season  -->
  99.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]ep?\.?(\d\d?)[^\w]([^/\\]*)</regexp>      
  100.        
  101.         <!--  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  -->
  102.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]episode[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>   
  103.  
  104.         <!--  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 -->
  105.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]part[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>  
  106.        
  107.         <!--  File name format: /The Young Indiana Jones Chronicles/Season 1/The.Young.Indiana.Jones.Chronicles.Chapter.01.My.First.Adventure.DVDRip.XviD-SAiNTS.avi  -->
  108.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]chapter[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>   
  109.        
  110.         <!--  File name format: /Action/Season 1/Action101 Pilot.avi  -->
  111.         <!--  Last (?!.*]) to deal with anime numbering producing false positives. not a perfect solution  -->
  112.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?\1(\d\d)(?!.*])</regexp>
  113.  
  114.         <!--  File name format: /season 5/Lost - 5 x 05.mkv  -->
  115.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?\1[^\w]?x[^\w]?(\d\d?)([^/\\]*)</regexp>
  116.        
  117.         <!--  File name format: /Season 1/Grange Hill S01xE01.avi  -->
  118.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?s0?\1[ex]{0,2}(\d{1,2})([^/\\]*)</regexp>      
  119.        
  120.         <!--  File name format: /Season 1/the_scene_xvid_episode_8.avi
  121.                     This REGEX has huge potential for false positives but catches alot of the left over dross.
  122.                     Suggest commenting it out if you are unsure  -->
  123.         <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\][^\d]+[\. _-](\d{1,2})[\. _-][^\d]+</regexp>  
  124.   </tvshowmatching>
  125.  
  126.     <!--
  127.         #######################################################################################
  128.    Movie Stacking
  129.    Caters for a few edge cases of well known movie format XBMC misses.
  130.    Should be relatively safe for any XBMC user to add.
  131.         #######################################################################################
  132.         -->
  133.          
  134.   <moviestacking action="append">
  135.      <regexp>done[ _\.-](\d)[ _\.-]</regexp>
  136.   </moviestacking>
  137.  
  138.     <!--
  139.         #######################################################################################
  140.    Extras folder
  141.    Should stop XNM<C indexing anything in a folder called extras whilst still allowing
  142.    the real tv show "Extras" to exist. Probably requires a strict folder structure.
  143.    Should be relatively safe for any XBMC user to add.
  144.         #######################################################################################
  145.         -->
  146.          
  147.   <video>
  148.   <excludefromscan action="append">
  149.     <regexp>[/\\]extras[/\\](?!season)</regexp>
  150.   </excludefromscan>
  151.   </video>
  152.  
  153. </advancedsettings>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement