Advertisement
Guest User

Untitled

a guest
Sep 29th, 2010
836
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 9.34 KB | None | 0 0
  1. <!--
  2. This REGEX is UNOFFICIAL/EXPERIMENTAL and may in places require a strict folder structure.
  3. See forum link for README, changelog and support.
  4.  
  5. Version:    V2.1
  6. Author:     Xe
  7. Link:       http://forum.xbmc.org/showthread.php?t=51614
  8.  
  9. ################################################################################-->
  10.  
  11. <advancedsettings>
  12.  
  13.     <!-- Customise/remove/comment this section to your personal preferences -->
  14.    
  15.     <useddsfanart>true</useddsfanart>   <!-- Enable GPU accelerated fanart-->
  16.     <navigatevirtualkeyboard>true</navigatevirtualkeyboard> <!-- Activates virtual keyboard navigation, default is false -->
  17.     <lcd> <!-- This is for my Antec LCD. Edit for your own -->
  18.         <rows>2</rows>
  19.         <columns>16</columns>
  20.         <scrolldelay>3</scrolldelay>
  21.     </lcd>
  22.  
  23.     <videolibrary>
  24.         <hideallitems>true</hideallitems>  <!-- Remove the "*All" items from the video library -->
  25.         <hideemptyseries>false</hideemptyseries>  <!-- Dont hide empty series in the video library -->
  26.         <hiderecentlyaddeditems>false</hiderecentlyaddeditems>  <!-- Dont remove the "Recently added ..." items from the video library. -->
  27.         <recentlyaddeditems>300</recentlyaddeditems> <!-- Increase number of recently added items from default 25 -->
  28.         <backgroundupdate>false</backgroundupdate> <!-- set to hide the video scanner dialog from the gui -->
  29.         <flattentvshows>0</flattentvshows> <!-- Flatten TV show seasons, 0=never 1=if one season (default) 2=all -->
  30.     </videolibrary>
  31.  
  32.   <musiclibrary>
  33.     <backgroundupdate>false</backgroundupdate> <!-- set to hide the music scanner dialog from the gui -->
  34.    </musiclibrary>
  35.    
  36.     <myvideos>
  37.         <extractthumb>false</extractthumb> <!-- Dont create random thumbnails. Either scrape them from the internet or dont have them -->
  38.     </myvideos>
  39.  
  40.     <sorttokens>
  41.     <token separators="">&quot;</token> <!-- Ignore " when sorting. Senisble due to IMDB naming policy -->
  42.     </sorttokens>
  43.  
  44.     <!-- Stop XBMC indexing some unwanted common items -->
  45.  
  46.     <video>
  47.         <excludefromscan action="prepend">
  48.             <regexp>(?i)extras</regexp> <!-- Anything with extras in the path (recursive and case insensitive) will be ignored.This is VERY greedy but works for me. Post in forum if you need refinements-->
  49.             <regexp>(?i)sample</regexp> <!-- Anything with sample in the path (recursive and case insensitive) will be ignored.This is VERY greedy but works for me. Post in forum if you need refinements-->
  50.             <regexp>(?i)uTorrentPartFile</regexp>  <!-- For people silly enough to use this client :) -->
  51.         </excludefromscan>
  52.         <excludetvshowsfromscan action="prepend">
  53.             <regexp>(?i)extras</regexp> <!-- Anything with extras in the path (recursive and case insensitive) will be ignored.This is VERY greedy but works for me. Post in forum if you need refinements-->
  54.             <regexp>(?i)sample</regexp> <!-- Anything with sample in the path (recursive and case insensitive) will be ignored.This is VERY greedy but works for me. Post in forum if you need refinements-->
  55.             <regexp>(?i)uTorrentPartFile</regexp>  <!-- For people silly enough to use this client :) -->
  56.         </excludetvshowsfromscan>
  57.     </video>
  58.  
  59.  
  60.     <!-- XBMC indentifys a few files incorrectly so we will catch them here before XBMC trys -->
  61.  
  62.     <tvshowmatching action="prepend">
  63.  
  64.         <regexp>(?i)[/\\]tpz-(?:24|30rock|4400)(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp> <!-- tzp-SPECIFICSHOW12324.avi Caters for some show specific odditys -->
  65.         <regexp>(?i)[/\\]tpz-[^\d]*(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp> <!-- tzp-show12324.avi -->
  66.         <regexp>(?i)[\. _-]s(\d{1,2})[\. _-]?e(\d{1,2})[\. _-](?=.*dirfix)</regexp> <!-- First try at handling NON RAR dirfix naming show.name.S01E10.ep.name.here.DiRFiX.PROPER.HDTV.XviD-XEE-->
  67.     <regexp>(?i)[\. _-]s(\d{1,2})[\. _-]?e(\d{1,2})(.*)dirfix</regexp> <!-- First try at handling NON RAR dirfix naming show.name.S01E10E11.ep.name.here.DiRFiX.PROPER.HDTV.XviD-XEE-->
  68.  
  69.         <!--
  70.         #######################################################################################
  71.         File only REGEX matching in an attempt to cater for ultra lame TPZ Topaz naming scheme.
  72.         99%+ accuracy. The remaining are TPZ releases that dont follow their own naming scheme.
  73.         The order they run in is VITAL. To be safe run them all or none.
  74.         #######################################################################################
  75.         -->
  76.  
  77.         <regexp>(?i)[/\\]tpz-(?:24|30rock|4400)(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp> <!-- tzp-SPECIFICSHOW12324.avi This attempts to cater for some odditys -->
  78.         <regexp>(?i)[/\\]tpz-johnadams(\d).avi</regexp> <!-- tpz-johnadams2.avi. Another TPZ divergence from their own naming scheme. XBMC will assume Season 1 if only one match-->
  79.         <regexp>(?i)[/\\]tpz-[^\d]*(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp> <!-- tzp-show12324.avi -->
  80.  
  81.         <!-- Anime specific matching. YMMV with this one as anime naming is odd. REQUIRES CRC in name -->      
  82.        
  83.         <regexp>(?i)()[\. _-](\d){1,2}[\. _-v].*\[[\da-z]{8}\]</regexp> <!--  [Doki]_Asobi_ni_Iku_yo!_-_03v2_(1280x720_h264_AAC)_[B5B9C6F3].mkv     -->    
  84.        
  85.        
  86.         <!-- Courtesy of Grum, this REGEX will extract info from scene RARs. As it is not mine no support -->
  87.         <!-- IMPORTANT URL ENCODING BEING DEPRECATED. THIS RAR REGEX WILL BE EOL FROM DHARMA Beta 3 ON -->
  88.  
  89.         <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed]) Episode           (?:%(?:5f|2[ed]))? (\d+)                                                         %(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  90.         <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>
  91.         <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>
  92.         <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>
  93.         <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>
  94.         <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed])  (\d+)                              x(\d+)                                                         %(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  95.         <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed]) part              (?:%(?:5f|2[ed]))? (\d+)                                                         %(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  96.         <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>
  97.         <regexp>(?x)rar://.*%(?:2f|5c).*%(?:5f|2[ed]) E(?:P(?:isode)?)?                    (\d+)                                                         %(?:5f|2[ed]).*%(?:2f|5c).*%2erar/[^/]+[.](?:avi|ogm|mkv)</regexp>
  98.  
  99.     </tvshowmatching>
  100.  
  101.         <!-- Now that XBMC has had a shot we will try a few more les reliable REGEX  -->
  102.  
  103.     <tvshowmatching action="append">
  104.  
  105.         <!--
  106.         #######################################################################################
  107.         Takes the season number from the folder name and ep number from video file.
  108.         For best results use the tvshow.nfo method along with show/season x/episodes
  109.         #######################################################################################
  110.         -->
  111.  
  112.         <regexp>(?i)[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\][^\d]+[\. _-](\d{1,2})[\. _-][^\d]+</regexp> <!-- /Season 1/the_episode_8.avi HUGE potential for false positives. Comment out if you are unsure  -->
  113.         <regexp>(?i)[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?\D\1(\d\d)(?!.*])</regexp> <!-- /Action/Season 1/Action101 Pilot.avi  Last (?!.*]) helps with anime false positives. not a perfect solution -->
  114.         <regexp>(?i)[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\](\d\d?)[^\w]([^/\\]*)</regexp> <!-- /UFO/Season 1/02.Computer.Affair.divx e.g. lame sequntial numbering witout season  -->
  115.         <regexp>(?i)[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]ep?\.?(\d\d?)[^\w]([^/\\]*)</regexp> <!-- /Ulysses 31/Season 1/Ulysses 31 E12 Trapped.avi e.g. lame sequntial numbering witout season  -->
  116.         <regexp>(?i)[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]?episode[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp> <!-- /The Chronicles/Season 1/Chronicles.Of.01.The.episode.6.DVDRip.DivX-movies.avi  -->
  117.         <regexp>(?i)[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]part[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp> <!-- /NASA Missions/Season 1/nasa.missions.part.3.hdtv.xvid-fqm.avi -->
  118.         <regexp>(?i)[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?[^\w]chapter[^\w]?(\d\d?)[^\w]([^/\\]*)</regexp>        <!-- /The Young /Season 1/The.Young.Chapter.01.My.First.Adventure.DVDRip.XviD-SAiNTS.avi  -->
  119.         <regexp>(?i)[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?\1[^\w]?x[^\w]?(\d\d?)([^/\\]*)</regexp> <!-- /season 5/Lost - 5 x 05.mkv  -->
  120.         <regexp>(?i)[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\].*?s0?\1[ex]{0,2}(\d{1,2})([^/\\]*)</regexp> <!-- /Season 1/Grange Hill S01xE01.avi  -->
  121.         <regexp>(?i)[.a-z](\d\d?)(\d\d)-notv([^/\\]*)</regexp> <!-- frng101-notv.avi  -->
  122.         <regexp>(?i)[/\\]\w+-\w+(\d)(\d\d)\.</regexp> <!-- mtn-tts104.avi  --> 
  123.     </tvshowmatching>
  124.  
  125. </advancedsettings>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement