Guest User

TV / Movie RexExp

a guest
Feb 26th, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.14 KB | None | 0 0
  1. <tvshowmatching action="prepend">
  2.  
  3.     <!-- DIRFIX Handling -->
  4.     <regexp>(?i)[\. _-]s(\d{1,2})[\. _-]?e(\d{1,2})(.*)dirfix</regexp>             <!-- DIRFIX Handling show.name.S01E10E11.ep.name.here.DiRFiX.PROPER.HDTV.XviD-XEE-->
  5.  
  6.     <regexp>\[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)([^\\/]*)</regexp>                      <!-- foo_[s01]_[e01] -->
  7.     <regexp>[\._ \-]([0-9]+)x([0-9]+)([^\\/]*)</regexp>                            <!-- foo.1x09 -->
  8.     <regexp>[\._ \-][Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)([^\\/]*)</regexp>              <!-- foo s01e01, foo.s01.e01, foo.s01-e01 -->
  9.     <regexp>[\._ \-]([0-9]+)([0-9][0-9])([\._ \-][^\\/]*)</regexp>                 <!-- foo.103 -->
  10.     <regexp>[\._ \-]p(?:ar)?t[._ -]()([ivxlcdm]+)([\._ \-][^\\/]*)</regexp>        <!-- Pt.I, Part XIV -->
  11.     <regexp>[/\._ \-]()([0-9]+)(-[0-9]+)?</regexp>                                 <!-- No Season E01 -->
  12.  
  13.     <!-- Edge case scene handling -->
  14.     <regexp>(?i)[/\\]tpz-(?:24|30rock|4400)(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>  <!-- tpz-SPECIFICSHOW12324.avi  This attempts to cater for some odditys -->
  15.     <regexp>(?i)[/\\]tpz-\D*(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>                 <!-- tzp-show12324.avi  -->
  16.     <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-->
  17.     <regexp>(?i)[/\\]tpz-\D*(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\.</regexp>                 <!-- tzp-show12324.avi  -->
  18.     <regexp>(?i)[.a-z](\d{1,2})(\d\d)-notv([^/\\]*)</regexp>                                          <!-- frng101-notv.avi  -->
  19.     <regexp>(?i)[/\\]\w+-\w+(\d)(\d\d)\.</regexp>                                                     <!-- mtn-tts104.avi  -->
  20.  
  21.     <!-- Anime specific matching. YMMV with this one as anime naming is oddball. -->
  22.     <regexp>(?i)[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\]\[.+?\].*?(?:-[\. _]*|ep[\. _]*)(\d{1,3})(?:v\d+)?[\. _]*(?:-.*?)?(?:[[({].+?[])}][\. _]*)+</regexp> <!--  [Doki]_Asobi_ni_Iku_yo!_-_03v2_(1280x720_h264_AAC)_[B5B9C6F3].mkv -->
  23.     <regexp>(?i)[/\\]\[.+?\].*?(?:-[\. _]*|ep[\. _]*)(\d{1,3})(?:v\d+)?[\. _]*(?:-.*?)?(?:[[({].+?[])}][\. _]*)+</regexp> <!--  [Doki]_Asobi_ni_Iku_yo!_-_03v2_(1280x720_h264_AAC)_[B5B9C6F3].mkv -->
  24.  
  25.     <!-- Anime specific matching. YMMV with this one as anime naming is oddball. REQUIRES CRC in name -->
  26.     <regexp>(?i)()(?:[\. _-]|ep)(\d{1,3})[\. _-v].*[[({][\da-f]{8}[])}]</regexp> <!--  [Doki]_Asobi_ni_Iku_yo!_-_03v2_(1280x720_h264_AAC)_[B5B9C6F3].mkv -->
  27.  
  28.     <!-- Old versions of Anime handling -->
  29.     <!--regexp>(?i)()(?:[\. _-]|ep)(\d{1,3})[\. _-v].*[[({][\da-z]{8}[])}]</regexp>   <!-- Anime - 01 [34c2dca4].mkv -->
  30.     <!--regexp>(?i)()(?:[\. _-]|ep)(\d{1,3})[\. _-v].*[\[({][\da-z]{8}[\])}]</regexp> <!-- [Doki]_Asobi_ni_Iku_yo!_-_03v2_(1280x720_h264_AAC)_[B5B9C6F3].mkv -->
  31.   </tvshowmatching>
  32.  
  33.   <tvshowmatching action="append">
  34.     <!-- XBMC has tried not its our turn again -->
  35.  
  36.     <!-- Use the season number from the folder name and ep number from video file -->
  37.     <regexp>(?i)[/\\](?:s|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  -->
  38.     <regexp>(?i)[/\\](?:s|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 -->
  39.     <regexp>(?i)[/\\](?:s|season)\W?(\d{1,2})\D*[/\\](\d{1,2})\W([^/\\]*)</regexp>                  <!-- /UFO/Season 1/02.Computer.Affair.Divx e.g. lame sequntial numbering witout season  -->
  40.     <regexp>(?i)[/\\](?:s|season)\W?(\d{1,2})\D*[/\\].*?\Wep?\.?(\d{1,2})\W([^/\\]*)</regexp>       <!-- /Ulysses 31/Season 1/Ulysses 31 E12 Trapped.avi e.g. lame sequntial numbering witout season  -->
  41.     <regexp>(?i)[/\\](?:s|season)\W?(\d{1,2})\D*[/\\].*?\W?episode\W?(\d{1,2})\W([^/\\]*)</regexp>  <!-- /The Chronicles/Season 1/Chronicles.Of.01.The.episode.6.DVDRip.DivX-movies.avi  -->
  42.     <regexp>(?i)[/\\](?:s|season)\W?(\d{1,2})\D*[/\\].*?\Wpart\W?(\d{1,2})\W([^/\\]*)</regexp>      <!-- /NASA Missions/Season 1/nasa.missions.part.3.hdtv.xvid-fqm.avi -->
  43.     <regexp>(?i)[/\\](?:s|season)\W?(\d{1,2})\D*[/\\].*?\Wchapter\W?(\d{1,2})\W([^/\\]*)</regexp>   <!-- /The Young/Season 1/The.Young.Chapter.01.My.First.Adventure.DVDRip.XviD-SAiNTS.avi  -->
  44.     <regexp>(?i)[/\\](?:s|season)\W?(\d{1,2})\D*[/\\].*?\1\W?x\W?(\d{1,2})([^/\\]*)</regexp>        <!-- /season 5/Lost - 5 x 05.mkv  -->
  45.     <regexp>(?i)[/\\](?:s|season)\W?(\d{1,2})\D*[/\\].*?s0?\1[ex.]{0,2}(\d{1,2})([^/\\]*)</regexp>  <!-- /Season 1/Grange Hill S01xE01.avi  -->
  46.  
  47.   </tvshowmatching>
  48.  
  49.   <moviestacking> <!-- Tokens - (Title)(Volume)(Ignore)(Extension). If you have a "one pile file" system of movie organization then DONT run these -->
  50.  
  51.     <regexp>(?i)(.*-done[\. _-])(\d)(\.)(\w{3})$</regexp>                     <!-- movie name.blah.DVDRip.XviD-DoNE.1.avi -->
  52.     <regexp>(?i)(.*?[\. _-]cd)(\d)([\. _-].*?\.)(\w{3})$</regexp>             <!-- movie name.blah.iNTERNAL.DVDRip.XViD.CD1-TWiST.avi -->
  53.     <regexp>(?i)(.*?[\. _-]cd)(\d)(\.)(\w{3})$</regexp>                       <!-- group-40yearoldv-cd1.avi -->
  54.     <regexp>(?i)(.*?cd)(\d)(\.)(\w{3})$</regexp>                              <!-- group-30doncd1.avi -->
  55.     <regexp>(?i)(.*[\. _-])([abc])(\.)(\w{3})$</regexp>                       <!-- group-310ty-a.avi -->
  56.     <regexp>(?i)(.*?)([abc123])(\.)(\w{3})$</regexp>                          <!-- group-outa.avi -->
  57.     <regexp>(?i)(.*?)([abc123])([\. _-](?:xvid|divx|int)\.)(\w{3})$</regexp>  <!-- group-moviea-xvid.avi -->
  58.     <regexp>(?i)(.*)(\d{1,2})(\.)(\w{3})$</regexp>                            <!-- group-movie2.avi -->
  59.     <regexp>(?i)(.*)(\d{1,2})([\. _-]\w{3,10}\.)(\w{3})$</regexp>             <!-- movie1-grp.avi -->
  60.     <regexp>(?i)(.*?[\. _-])(\d{1,2})(\.)(\w{3})$</regexp>                    <!-- movie-name-01.avi.avi -->
  61.     <regexp>(?i)(.*?[\. _-]part)(\d{1,2})([\. _-].*?\.)(\w{3})$</regexp>      <!-- Movie.name.DvDrip.Part1-group.avi -->
  62.  
  63.   </moviestacking>
Add Comment
Please, Sign In to add comment