SHARE
TWEET

Untitled

a guest Dec 16th, 2009 395 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--
  2. ########################################################################################
  3. V0.1 - 05/05/2009
  4. Initial Upload
  5.  
  6. V0.2 - 08/05/2009
  7. TPZ matches now require season folder. Fixes some false positives.
  8.  
  9. V0.3 - 16/05/2009
  10. Support for /season 5/Lost - 5 x 05.mkv
  11.  
  12. V0.4 - 28/05/2009
  13. Cater for cross platform difference in paths i.e. \/
  14.  
  15. V0.5 - 03/06/2009
  16. Added regex to match some awful TV naming that has no season.
  17. This release marks 99% completion rate of google scraped XBMC missed eps (10,000+ ).
  18. The last regex in the list and may product false positives. Use with caution.
  19.  
  20. V0.6 - 06/06/2009
  21. New component. Commonly missed movie stacking REGEX.
  22. Big caveat, will NOT fix movies already in the library.
  23. To fix completely remove the multiple movie entries and rescan.
  24.  
  25. V0.7 - 08/06/2009
  26. Added excludefromscan section. Do not catalog anything in a folder called extras.
  27. Using the expected TV folder naming structure still allows the TV show "Extras".
  28. Note: This does not work for me but does for other users. Please report back your experiences.
  29.  
  30. V0.8 - 10/06/2009
  31. After a IRC discussion with cptspiff and mgc I release this version to cater for
  32. TOPAZ releases but with NO REQUIRED FOLDER STRUCTURE.
  33. This should also handle Topaz which are still in rar format.
  34. Please report back on success as I am working only from data scraped from google.
  35.  
  36. V0.9 - 28/06/2009
  37. Default XBMC REGEX producing false positives with TPZ.
  38. To deal with this we now have both prepend and append REGEX.
  39.  
  40. V1.0 - 30/10/2009
  41. Replaced some of the stacking regex removed in commit 24060. WARNING this may break serials support.
  42. In general I am not happy with this new REGEX and it needs more work.  
  43. This file also includes some general XBMC settings I use.
  44. It would be better if i didn't include these settings but doing so makes it easier for me.
  45. Delete them if they are not to your taste.
  46.  
  47. V1.1 - 11/11/2009
  48. General cleanup in preparation for pastebin.
  49.  
  50. V1.2 - 16/11/2009
  51. Split folder exclusions "extras" into two REGEX one for movies and one for TV.
  52. As of r24405 video stacking regular expressions must contain exactly four (4) capture expressions. Removed old stacking REGEX will add back in as required.
  53.                    
  54. V1.3 - 20/11/2009
  55. Added setting to turn off auto thumbs
  56.  
  57. V1.4 - 30/11/2009
  58. Tweaked Episode match to be a little less strict. Should catch /Shows/Mad Men/Season 1/Episode 12.avi etc
  59.  
  60. V1.5 - 04/12/2009
  61. Seems like EXCLUDE matching is case sensitive. Quick fix for testing.
  62.  
  63. V1.6 - 16/12/2009
  64. This is a significant update. Consider it ALPHA. In order to fix the broken REGEX I had to change almost all the custom REGEX to prepend.
  65. This increses the chances of false positives significantly although in testing they still perform well.
  66. This version requires SVN 25638+ to be fully compatible. Most will work with older versions.
  67. If you have a tv show called Extras rename it to Extras (2005) for the EXCLUDE regex to be compatible.
  68. Also a big thanks to Grum in IRC for the rar regex. This will natively handle alot of rar packs very accurtaly.
  69. Use at you own risk.
  70.                                                                                                                                
  71. #######################################################################################
  72. This REGEX is EXPERIMENTAL and may require a strict folder structure.
  73.  
  74. *Use at your own risk*
  75.                                                                                                                
  76. I specifically use multiple REGEX rather than try to build one REGEX to rule them all.
  77. This wastes CPU cycles but allows easier bug finding, refining and end user understanding.
  78. The order they run is important. It will never catch all episodes.
  79. Since were trying to deal with bad naming it could result in false positives.
  80. Comments and submissions welcomed but where posible try to keep it simple.
  81. If in doubt use two simple REGEX rather than one complex one.
  82. ########################################################################################
  83.  
  84. ########################################################################################
  85. To install this REGEX create a text file called advancedsettings.xml
  86. Copy the contents of this into this file and place it in the Userdata folder
  87. Restart XBMC
  88.  
  89. or
  90.  
  91. Download this file from pastebin and rename to advancedsettings.xml
  92. ########################################################################################
  93. -->
  94.  
  95.  
  96. <advancedsettings>
  97.        
  98.         <!--
  99.         #######################################################################################
  100.         This section can likely be removed. Personal preferences.
  101.         #######################################################################################
  102.         -->      
  103.  
  104.         <navigatevirtualkeyboard>true</navigatevirtualkeyboard> <!-- This will activate virtual keyboard navigation, default is false -->  
  105.  
  106.         <videolibrary>
  107.                 <hideallitems>true</hideallitems>  <!-- removes the "*All" items from the video library -->
  108.                 <hideemptyseries>false</hideemptyseries>  <!-- hide empty series in the video library -->
  109.                 <hiderecentlyaddeditems>false</hiderecentlyaddeditems>  <!-- removes the "Recently added ..." items from the video library. -->
  110.                 <recentlyaddeditems>250</recentlyaddeditems> <!-- number of recently added items. Defaults to 25 -->
  111.         </videolibrary>
  112.        
  113.         <myvideos>
  114.                 <extractthumb>false</extractthumb> <!-- Dont create random thumbnails. Either scrape them from the internet or dont have them -->
  115.         </myvideos>
  116.  
  117.         <!--
  118.         #######################################################################################
  119.         Extras folder
  120.         Should stop XBMC indexing anything in a folder called extras whilst still allowing
  121.         the real tv show "Extras" to exist. Probably requires a strict folder structure.
  122.         Should be relatively safe for any XBMC user to add.
  123.         #######################################################################################
  124.         -->
  125.  
  126.         <video>
  127.                 <excludefromscan action="prepend">
  128.                         <regexp>[\//]extras[\//]</regexp>
  129.                 </excludefromscan>
  130.                 <excludetvshowsfromscan action="prepend">
  131.                         <regexp>[\//]extras[\//]</regexp>
  132.                 </excludetvshowsfromscan>
  133.         </video>
  134.        
  135.        
  136.         <!--
  137.         #######################################################################################
  138.         XBMC catches a few files incorrectly so we will catch them befroe XBMC trys.
  139.         #######################################################################################
  140.         -->
  141.  
  142.         <tvshowmatching action="prepend">
  143.                 <!--  File name format: tzp-SPECIFICSHOW12324.avi       This attempts to cater for some show specific odditys -->              
  144.                 <regexp>[/\\]tpz-(?:24|30rock|4400)(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>
  145.                 <!--  File name format: tzp-show12324.avi       -->                    
  146.                 <regexp>[/\\]tpz-[^\d]*(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>
  147.                
  148.                 <!--  File name format: /UFO/Season 1/02.Computer.Affair.divx e.g. lame sequntial numbering witout season  -->
  149.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\](\d\d?)[^\w]([^/\\]*)</regexp>            
  150.  
  151.                 <!--  File name format: /Ulysses 31/Season 1/Ulysses 31 E12 Trapped Between Fire And Ice.avi e.g. lame sequntial numbering witout season  -->
  152.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]ep?\.?(\d\d?)[^\w]([^/\\]*)</regexp>              
  153.  
  154.                 <!--  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  -->
  155.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]?episode[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>      
  156.  
  157.                 <!--  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 -->
  158.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]part[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>  
  159.  
  160.                 <!--  File name format: /The Young Indiana Jones Chronicles/Season 1/The.Young.Indiana.Jones.Chronicles.Chapter.01.My.First.Adventure.DVDRip.XviD-SAiNTS.avi  -->
  161.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]chapter[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>       
  162.  
  163.                 <!--  File name format: /Action/Season 1/Action101 Pilot.avi  -->
  164.                 <!--  Last (?!.*]) to deal with anime numbering producing false positives. not a perfect solution  -->
  165.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?\1(\d\d)(?!.*])</regexp>
  166.  
  167.                 <!--  File name format: /season 5/Lost - 5 x 05.mkv  -->
  168.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?\1[^\w]?x[^\w]?(\d\d?)([^/\\]*)</regexp>
  169.  
  170.                 <!--  File name format: /Season 1/Grange Hill S01xE01.avi  -->
  171.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?s0?\1[ex]{0,2}(\d{1,2})([^/\\]*)</regexp>      
  172.                
  173.                 <!--  File name format: frng101-notv.avi  -->
  174.                 <regexp>[.a-z](\d\d?)(\d\d)-notv([^/\\]*)</regexp>
  175.  
  176.                 <!--  File name format: mtn-tts104.avi  -->
  177.                 <regexp>[/\\]\w+-\w+(\d)(\d\d)\.</regexp>              
  178.  
  179.                 <!--
  180.                 #######################################################################################
  181.                 This section uses a traditional file only based approach and attempts to cater for
  182.                 ultra lame TPZ Topaz naming scheme.
  183.                 This has been tested offline against 1031 googled sample filenames with 1023 matches.
  184.                 The remaining that do not match dont follow their own naming convention.
  185.                 The order they run in is VITAL. Do not run one without the other.
  186.                 #######################################################################################
  187.                 -->    
  188.  
  189.                 <!--  File name format: tzp-SPECIFICSHOW12324.avi       This attempts to cater for some odditys -->
  190.                 <regexp>[/\\]tpz-(?:24|30rock|4400)(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>
  191.  
  192.                 <!--  File name format: tpz-johnadams2.avi. Another TPX divergence from their own naming scheme. XBMC will assume Season 1 if only one match-->
  193.                 <regexp>[/\\]tpz-johnadams(\d).avi</regexp>            
  194.                
  195.                 <!--  File name format: tzp-show12324.avi       -->                    
  196.                 <regexp>[/\\]tpz-[^\d]*(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>
  197.                                
  198.                 <!--
  199.                 #######################################################################################
  200.                 Courtesy of Grum
  201.                 This REGEX will sxtract info from scene RARs
  202.                 I will not be able to offer support on this seciton as I have no suitable files,
  203.                 but by all accounts it will work exceptionally well
  204.                 #######################################################################################
  205.                 -->
  206.                
  207.                 <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed]) Episode           (?:%(?:5f|2[ed]))? (\d+)                                                         %(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  208.     <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed]) S(\d+)            (?:%(?:5f|2[ed]))?E(\d+)   %(?:5f|2[ed])   S(?:\d+)      (?:%(?:5f|2[ed]))?E(\d+)%(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  209.     <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed]) S(\d+)            (?:%(?:5f|2[ed]))?E(\d+)(?:%(?:5f|2[ed]))? E  (\d+)                              %(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  210.     <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed])  (\d+)                              x(\d+)   %(?:5f|2[ed])    (?:\d+)x(\d+)                        %(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  211.     <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed]) S(\d+)            (?:%(?:5f|2[ed]))?E(\d+)                                                         %(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  212.     <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed])  (\d+)                              x(\d+)                                                         %(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  213.     <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed]) part              (?:%(?:5f|2[ed]))? (\d+)                                                         %(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  214.     <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed]) E(?:P(?:isode)?)?                    (\d+)(?:%(?:5f|2[ed]))? E(?:P(?:isode)?)?                (\d+)%(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  215.     <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed]) E(?:P(?:isode)?)?                    (\d+)                                                         %(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  216.                
  217.         </tvshowmatching>      
  218.                          
  219.         <!--
  220.         #######################################################################################
  221.         This section uses a traditional file only based approach and catches some common names
  222.         #######################################################################################
  223.         -->
  224.         <tvshowmatching action="append">
  225.                          
  226.                 <!--
  227.                 #######################################################################################
  228.                 This section takes the season number from the folder name and ep number from video file
  229.                 For best results use the tvshow.nfo method along with show/season x/episodes
  230.                 #######################################################################################
  231.                 -->
  232.  
  233.                
  234.                 <!--  File name format: /Season 1/the_scene_xvid_episode_8.avi
  235.                 This REGEX has HUGE potential for false positives but catches alot of the left over dross.     
  236.                 Suggest commenting it out if you are unsure  -->
  237.                 <regexp>[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\][^\d]+[\. _-](\d{1,2})[\. _-][^\d]+</regexp>      
  238.                
  239.         </tvshowmatching>
  240.  
  241.         <!--
  242.         #######################################################################################
  243.         Movie Stacking
  244.         Caters for a few edge cases of well known movie format XBMC misses.
  245.         Current XBMC stacking undergoing alot of changes. Removed in the interim.
  246.         #######################################################################################
  247.         -->
  248.                  
  249.  
  250. </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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top