SHARE
TWEET

Untitled

a guest Sep 26th, 2012 436 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <scraper framework="1.1" date="2011-04-18">
  3.  
  4.   <NfoUrl dest="3">        
  5.     <RegExp input="$$1" output="&lt;url gzip=&quot;yes&quot; cache=&quot;\1.xml&quot;&gt;http://api.anidb.net:9001/httpapi?request=anime&amp;client=xbmcscrap&amp;clientver=1&amp;protover=1&amp;aid=\1&lt;/url&gt;" dest="3">
  6.       <expression>aid=(\d+)</expression>
  7.     </RegExp>
  8.   </NfoUrl>
  9.  
  10.   <CreateSearchUrl clearbuffers="no" dest="4">  
  11.     <RegExp conditional="Google" input="$$4" output="&lt;url gzip=&quot;yes&quot;&gt;http://www.google.com/search?q=site:anidb.net\1&amp;filter=0&lt;/url&gt;" dest="4">
  12.       <RegExp input="$$1" output="+\1" dest="4">
  13.         <expression clear="yes" repeat="yes">(?i)(?:%[a-f0-9]{2})*([a-z0-9]+)?</expression>
  14.       </RegExp>
  15.       <expression clear="yes" noclean="1"/>
  16.     </RegExp>
  17.     <RegExp conditional="!Google" input="$$1" output="&lt;url gzip=&quot;yes&quot; cache=&quot;anidb.xml&quot;&gt;$INFO[AnimeListUrl]&lt;/url&gt;" dest="4">
  18.       <RegExp input="$$1" output="\1" dest="18">
  19.         <expression clear="yes"/>
  20.       </RegExp>
  21.       <expression clear="yes"/>
  22.     </RegExp>
  23.     <RegExp input="" output="" dest="1">
  24.       <expression clear="yes"/>
  25.     </RegExp>
  26.   </CreateSearchUrl>
  27.  
  28.   <GetSearchResults clearbuffers="no" dest="4">
  29.     <RegExp input="$$4" output="&lt;results&gt;\1&lt;/results&gt;" dest="4">
  30.       <RegExp conditional="Google" input="$$4" output="\1" dest="4">
  31.         <RegExp conditional="Google" input="$$1" output="&lt;url function=&quot;GetSearchResultsExt&quot; gzip=&quot;yes&quot; cache=&quot;\1.xml&quot;&gt;http://api.anidb.net:9001/httpapi?request=anime&amp;client=xbmcscrap&amp;clientver=1&amp;protover=1&amp;aid=\1&lt;/url&gt;" dest="4">
  32.           <expression clear="yes" repeat="yes">(?i)&lt;a href=&quot;http://anidb\.net/perl-bin/animedb\.pl\?show=anime&amp;amp;aid=(\d+)&quot;</expression>
  33.         </RegExp>
  34.         <RegExp conditional="Google" input="$$1" output="&lt;url function=&quot;GetSearchResultsExt&quot; gzip=&quot;yes&quot; cache=&quot;\1.xml&quot;&gt;http://api.anidb.net:9001/httpapi?request=anime&amp;client=xbmcscrap&amp;clientver=1&amp;protover=1&amp;aid=\1&lt;/url&gt;" dest="4+">
  35.           <expression repeat="yes">(?i)&lt;a href=&quot;http://anidb\.net/a(\d+)&quot;</expression>
  36.         </RegExp>
  37.         <expression noclean="1"/>
  38.       </RegExp>
  39.       <RegExp conditional="!Google" input="$$5" output="\1" dest="4">
  40.         <RegExp input="$$18" output="\1[^&lt;]*" dest="6">
  41.           <expression clear="yes" repeat="yes">(?i)([a-z0-9]+)(?:%[a-f0-9]{2}|[!\.\-\(\)])*</expression>
  42.         </RegExp>
  43.         <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;Anidb Search : A\1 ~ \2&lt;/title&gt;&lt;url gzip=&quot;yes&quot; cache=&quot;\1.xml&quot;&gt;http://api.anidb.net:9001/httpapi?request=anime&amp;client=xbmcscrap&amp;clientver=1&amp;protover=1&amp;aid=\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="5">
  44.           <expression clear="yes" repeat="yes" trim="2">&lt;anime aid=&quot;(\d+)&quot;&gt;(?:[^&lt;]*&lt;title[^&lt;]+&lt;/title&gt;)*[^&lt;]*&lt;title\s+type=&quot;main&quot;[^&gt;]*&gt;([^&lt;]*$$6[^&lt;]*)&lt;/title&gt;</expression>
  45.         </RegExp>
  46.         <RegExp conditional="OfficalName" input="$$1" output="&lt;entity&gt;&lt;title&gt;Anidb Search : A\1 ~ \2&lt;/title&gt;&lt;url gzip=&quot;yes&quot; cache=&quot;\1.xml&quot;&gt;http://api.anidb.net:9001/httpapi?request=anime&amp;client=xbmcscrap&amp;clientver=1&amp;protover=1&amp;aid=\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="5+">
  47.           <expression repeat="yes" trim="2">&lt;anime aid=&quot;(\d+)&quot;&gt;(?:[^&lt;]*&lt;title[^&lt;]+&lt;/title&gt;)*[^&lt;]*&lt;title\s+type=&quot;official&quot;\s+xml:lang=&quot;$INFO[OfficalLanguage]&quot;[^&gt;]*&gt;([^&lt;]*$$6[^&lt;]*)&lt;/title&gt;</expression>
  48.         </RegExp>
  49.         <RegExp conditional="!OfficalName" input="$$1" output="&lt;entity&gt;&lt;title&gt;Anidb Search : A\1 ~ \2&lt;/title&gt;&lt;url gzip=&quot;yes&quot; cache=&quot;\1.xml&quot;&gt;http://api.anidb.net:9001/httpapi?request=anime&amp;client=xbmcscrap&amp;clientver=1&amp;protover=1&amp;aid=\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="5+">
  50.           <expression repeat="yes" trim="2">&lt;anime aid=&quot;(\d+)&quot;&gt;(?:[^&lt;]*&lt;title[^&lt;]+&lt;/title&gt;)*[^&lt;]*&lt;title\s+type=&quot;official&quot;\s+xml:lang=&quot;en&quot;[^&gt;]*&gt;([^&lt;]*$$6[^&lt;]*)&lt;/title&gt;</expression>
  51.         </RegExp>
  52.         <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;Anidb Search : A\1 ~ \2&lt;/title&gt;&lt;url gzip=&quot;yes&quot; cache=&quot;\1.xml&quot;&gt;http://api.anidb.net:9001/httpapi?request=anime&amp;client=xbmcscrap&amp;clientver=1&amp;protover=1&amp;aid=\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="5+">
  53.           <expression repeat="yes" trim="2">&lt;anime aid=&quot;(\d+)&quot;&gt;(?:[^&lt;]*&lt;title[^&lt;]+&lt;/title&gt;)*[^&lt;]*&lt;title\s+type=&quot;syn&quot;\s+xml:lang=&quot;x-jat&quot;[^&gt;]*&gt;([^&lt;]*$$6[^&lt;]*)&lt;/title&gt;</expression>
  54.         </RegExp>
  55.         <expression noclean="1"/>
  56.       </RegExp>
  57.       <RegExp input="" output="" dest="1">
  58.         <expression clear="yes"/>
  59.       </RegExp>
  60.       <expression noclean="1"/>
  61.     </RegExp>
  62.   </GetSearchResults>
  63.  
  64.   <GetSearchResultsExt clearbuffers="no" dest="4">
  65.     <RegExp input="$$4" output="&lt;results&gt;\1&lt;/results&gt;" dest="4">
  66.       <RegExp input="$$1" output="\1" dest="20">
  67.         <expression clear="yes">(?i)&lt;anime\s+id=&quot;(\d+)&quot;</expression>
  68.       </RegExp>
  69.       <RegExp input="$$1" output="\1" dest="19">
  70.         <expression clear="yes" trim="1">(?i)&lt;title.*?type=&quot;main&quot;&gt;([^&lt;]+)&lt;/title&gt;</expression>
  71.       </RegExp>
  72.       <RegExp conditional="OfficalName" input="$$1" output="\1" dest="19">
  73.         <expression trim="1">(?i)&lt;title\s+xml:lang=&quot;$INFO[OfficalLanguage]&quot;\s+type=&quot;official&quot;&gt;([^&lt;]+)&lt;/title&gt;</expression>
  74.       </RegExp>
  75.       <RegExp input="$$20-$$19" output="&lt;entity&gt;&lt;title&gt;Google Search : A\1 ~ \2&lt;/title&gt;&lt;url gzip=&quot;yes&quot; cache=&quot;\1.xml&quot;&gt;http://api.anidb.net:9001/httpapi?request=anime&amp;client=xbmcscrap&amp;clientver=1&amp;protover=1&amp;aid=\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="4">
  76.         <expression clear="yes">(\d+)-(.+)</expression>
  77.       </RegExp>
  78.       <RegExp input="" output="" dest="1">
  79.         <expression clear="yes"/>
  80.       </RegExp>
  81.       <expression noclean="1"/>
  82.     </RegExp>
  83.   </GetSearchResultsExt>
  84.  
  85.   <GetDetails clearbuffers="no" dest="3">
  86.     <RegExp input="$$8" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
  87.       <RegExp input="$$1" output="\1" dest="20">
  88.         <expression noclean="1"/>
  89.       </RegExp>
  90.       <RegExp input="" output="" dest="8">
  91.         <expression clear="yes"/>
  92.       </RegExp>
  93.       <RegExp conditional="PersonalAnimeMapping" input="" output="&lt;url function=&quot;GetPersonalAnimeMapping&quot; cache=&quot;pers-anime-list.xml&quot;&gt;$INFO[PersonalAnimeMappingUrl]&lt;/url&gt;" dest="8+">
  94.         <expression/>
  95.       </RegExp>
  96.       <RegExp input="" output="&lt;url function=&quot;GetDetailsExt&quot; cache=&quot;anime-list.xml&quot;&gt;$INFO[AnimeMappingUrl]&lt;/url&gt;" dest="8+">
  97.         <expression/>
  98.       </RegExp>
  99.       <RegExp input="$$20" output="&lt;id&gt;$$2&lt;/id&gt;&lt;plot&gt;### YOU ARE BANNED FROM ANIDB.NET ###\nWAIT SOME TIME UNTIL YOU ARE UNBANNED&lt;/plot&gt;&lt;episodeguide&gt;&lt;url gzip=&quot;yes&quot; cache=&quot;$$2.xml&quot;&gt;http://api.anidb.net:9001/httpapi?request=anime&amp;client=xbmcscrap&amp;clientver=1&amp;protover=1&amp;aid=$$2&lt;/url&gt;&lt;/episodeguide&gt;" dest="8">
  100.         <expression>(?i)&lt;error&gt;banned&lt;/error&gt;</expression>
  101.       </RegExp>
  102.       <RegExp input="" output="" dest="1">
  103.         <expression clear="yes"/>
  104.       </RegExp>
  105.       <RegExp input="" output="" dest="2">
  106.         <expression clear="yes"/>
  107.       </RegExp>
  108.       <expression noclean="1"/>
  109.     </RegExp>
  110.   </GetDetails>
  111.  
  112.   <GetPersonalAnimeMapping clearbuffers="no" dest="3">
  113.     <RegExp input="" output="&lt;details&gt;&lt;/details&gt;" dest="3">
  114.       <RegExp input="$$1" output="\1" dest="2">
  115.         <expression noclean="1"/>
  116.       </RegExp>
  117.       <RegExp input="" output="" dest="1">
  118.         <expression clear="yes"/>
  119.       </RegExp>
  120.       <expression noclean="1"/>
  121.     </RegExp>
  122.   </GetPersonalAnimeMapping>
  123.  
  124.   <GetDetailsExt clearbuffers="no" dest="3">
  125.     <RegExp input="$$8" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
  126.       <RegExp input="$$2$$1" output="\1" dest="2">
  127.         <expression noclean="1"/>
  128.       </RegExp>
  129.       <RegExp input="$$20" output="\1" dest="1">
  130.         <expression noclean="1"/>
  131.       </RegExp>
  132.       <RegExp input="$$1" output="\1" dest="20">
  133.         <expression clear="yes">(?i)&lt;anime\s+id=&quot;(\d+)&quot;</expression>
  134.       </RegExp>
  135.       <RegExp input="$INFO[IdFrom]" output="&lt;id&gt;$$20&lt;/id&gt;" dest="8">
  136.         <expression clear="yes">AniDB\.net</expression>
  137.       </RegExp>
  138.       <RegExp input="$$2" output="\1" dest="19">
  139.         <expression clear="yes" noclean="1">(?i)(&lt;anime\s+anidbid=&quot;$$20&quot;.*?&lt;/anime&gt;)</expression>
  140.       </RegExp>
  141.       <RegExp input="$$19" output="\1" dest="18">
  142.         <expression clear="yes" noclean="1">(?i)(&lt;supplemental-info\s+replace=&quot;(?:true|yes)&quot;&gt;.*?&lt;/supplemental-info&gt;)</expression>
  143.       </RegExp>
  144.       <RegExp input="$$19" output="\1" dest="17">
  145.         <expression clear="yes" noclean="1">(?i)(&lt;supplemental-info(?!\s+replace=&quot;(?:true|yes)&quot;)[^&gt;]*&gt;.*?&lt;/supplemental-info&gt;)</expression>
  146.       </RegExp>
  147.       <RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="16">
  148.         <expression clear="yes" trim="1">(?i)&lt;title.*?type=&quot;main&quot;&gt;([^&lt;]+)&lt;/title&gt;</expression>
  149.       </RegExp>
  150.       <RegExp conditional="OfficalName" input="$$1" output="\1" dest="15">
  151.         <expression clear="yes" trim="1">(?i)&lt;title\s+xml:lang=&quot;$INFO[OfficalLanguage]&quot;\s+type=&quot;official&quot;&gt;([^&lt;]+)&lt;/title&gt;</expression>
  152.       </RegExp>
  153.       <RegExp conditional="OfficalName" input="$$15" output="&lt;title&gt;\1&lt;/title&gt;" dest="16">
  154.         <expression noclean="1">(.+)</expression>
  155.       </RegExp>
  156.       <RegExp input="$$18" output="\1" dest="16">
  157.         <expression noclean="1">(?i)(&lt;title&gt;.*?&lt;/title&gt;)</expression>
  158.       </RegExp>
  159.       <RegExp input="$$16" output="\1" dest="8+">
  160.         <RegExp input="$$16" output="'\1" dest="16">
  161.           <expression clear="yes" repeat="yes" noclean="1">`?([^`]+)</expression>
  162.         </RegExp>
  163.         <expression noclean="1">'(.*)</expression>
  164.       </RegExp>
  165.       <RegExp conditional="!OfficalName" input="$$1" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="16">
  166.         <expression clear="yes" trim="1">(?i)&lt;title\s+xml:lang=&quot;en&quot;\s+type=&quot;official&quot;&gt;([^&lt;]+)&lt;/title&gt;</expression>
  167.       </RegExp>
  168.       <RegExp conditional="OfficalName" input="$$15" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="16">
  169.         <expression noclean="1">(.+)</expression>
  170.       </RegExp>
  171.       <RegExp input="$$18" output="\1" dest="16">
  172.         <expression noclean="1">(?i)(&lt;originaltitle&gt;.*?&lt;/originaltitle&gt;)</expression>
  173.       </RegExp>
  174.       <RegExp input="$$16" output="\1" dest="8+">
  175.         <RegExp input="$$16" output="'\1" dest="16">
  176.           <expression clear="yes" repeat="yes" noclean="1">`?([^`]+)</expression>
  177.         </RegExp>
  178.         <expression noclean="1">'(.*)</expression>
  179.       </RegExp>
  180.       <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="16">
  181.         <expression clear="yes">(?i)&lt;startdate&gt;(\d{4})-</expression>
  182.       </RegExp>
  183.       <RegExp input="$$18" output="\1" dest="16">
  184.         <expression noclean="1">(?i)(&lt;year&gt;.*?&lt;/year&gt;)</expression>
  185.       </RegExp>
  186.       <RegExp input="$$16" output="\1" dest="8+">        
  187.         <expression noclean="1"/>
  188.       </RegExp>
  189.       <RegExp input="$$1" output="&lt;premiered&gt;\1&lt;/premiered&gt;" dest="16">
  190.         <expression clear="yes">&lt;startdate&gt;([^&lt;]+)&lt;/startdate&gt;</expression>
  191.       </RegExp>
  192.       <RegExp input="$$18" output="\1" dest="16">
  193.         <expression noclean="1">(?i)(&lt;premiered&gt;.*?&lt;/premiered&gt;)</expression>
  194.       </RegExp>
  195.       <RegExp input="$$16" output="\1" dest="8+">
  196.         <expression noclean="1"/>
  197.       </RegExp>
  198.       <!-- Rating is selected by scraper setting (Average or Weighted) -->
  199.       <RegExp input="$INFO[RatingType]" output="$$5" dest="6">
  200.         <RegExp input="$$1" output="\1;\2" dest="5">
  201.           <expression clear="yes">(?i)&lt;temporary.+?count=&quot;(\d+)&quot;[^&gt;]*&gt;([^&lt;]+)&lt;/temporary&gt;</expression>
  202.         </RegExp>
  203.         <expression>Average</expression>
  204.       </RegExp>      
  205.       <RegExp input="$INFO[RatingType]" output="$$5" dest="6">
  206.         <RegExp input="$$1" output="\1;\2" dest="5">
  207.           <expression clear="yes">(?i)&lt;permanent.+?count=&quot;(\d+)&quot;[^&gt;]*&gt;([^&lt;]+)&lt;/permanent&gt;</expression>
  208.         </RegExp>
  209.         <expression>Weighted</expression>
  210.       </RegExp>      
  211.       <RegExp input="$$6" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="16">
  212.         <expression clear="yes">(\d+);.+</expression>
  213.       </RegExp>
  214.       <RegExp input="$$18" output="\1" dest="16">
  215.         <expression noclean="1">(?i)(&lt;votes&gt;.*?&lt;/votes&gt;)</expression>
  216.       </RegExp>
  217.       <RegExp input="$$16" output="\1" dest="8+">
  218.         <expression noclean="1"/>
  219.       </RegExp>
  220.       <RegExp input="$$6" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="16">
  221.         <expression clear="yes">\d+;(.+)</expression>
  222.       </RegExp>
  223.       <RegExp input="$$18" output="\1" dest="16">
  224.         <expression noclean="1">(?i)(&lt;rating&gt;.*?&lt;/rating&gt;)</expression>
  225.       </RegExp>
  226.       <RegExp input="$$16" output="\1" dest="8+">
  227.         <expression noclean="1"/>
  228.       </RegExp>
  229.       <!-- Only genres with defined weight are overtaken -->
  230.       <RegExp input="$$1" output="\1" dest="5">
  231.         <expression clear="yes" noclean="1">(?i)&lt;categories&gt;(.*?)&lt;/categories&gt;</expression>
  232.       </RegExp>
  233.       <RegExp input="$$5" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="7">
  234.         <expression clear="yes" repeat="yes">(?i)&lt;category[^&gt;]*weight=&quot;600&quot;&gt;[^&lt;]*&lt;name&gt;([^&lt;]+)&lt;/name&gt;</expression>
  235.       </RegExp>
  236.       <RegExp input="$INFO[GenreWeight]-$$7" output="\1" dest="6">
  237.         <expression clear="yes" noclean="1">(?i)[^-]*600[^-]*-(.*)</expression>
  238.       </RegExp>
  239.       <RegExp input="$$5" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="7">
  240.         <expression clear="yes" repeat="yes">(?i)&lt;category[^&gt;]*weight=&quot;500&quot;&gt;[^&lt;]*&lt;name&gt;([^&lt;]+)&lt;/name&gt;</expression>
  241.       </RegExp>
  242.       <RegExp input="$INFO[GenreWeight]-$$7" output="\1" dest="6+">
  243.         <expression noclean="1">(?i)[^-]*500[^-]*-(.*)</expression>
  244.       </RegExp>
  245.       <RegExp input="$$5" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="7">
  246.         <expression clear="yes" repeat="yes">(?i)&lt;category[^&gt;]*weight=&quot;400&quot;&gt;[^&lt;]*&lt;name&gt;([^&lt;]+)&lt;/name&gt;</expression>
  247.       </RegExp>
  248.       <RegExp input="$INFO[GenreWeight]-$$7" output="\1" dest="6+">
  249.         <expression noclean="1">(?i)[^-]*400[^-]*-(.*)</expression>
  250.       </RegExp>
  251.       <RegExp input="$$5" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="7">
  252.         <expression clear="yes" repeat="yes">(?i)&lt;category[^&gt;]*weight=&quot;300&quot;&gt;[^&lt;]*&lt;name&gt;([^&lt;]+)&lt;/name&gt;</expression>
  253.       </RegExp>
  254.       <RegExp input="$INFO[GenreWeight]-$$7" output="\1" dest="6+">
  255.         <expression noclean="1">(?i)[^-]*300[^-]*-(.*)</expression>
  256.       </RegExp>
  257.       <RegExp input="$$5" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="7">
  258.         <expression clear="yes" repeat="yes">(?i)&lt;category[^&gt;]*weight=&quot;200&quot;&gt;[^&lt;]*&lt;name&gt;([^&lt;]+)&lt;/name&gt;</expression>
  259.       </RegExp>
  260.       <RegExp input="$INFO[GenreWeight]-$$7" output="\1" dest="6+">
  261.         <expression noclean="1">(?i)[^-]*200[^-]*-(.*)</expression>
  262.       </RegExp>
  263.       <RegExp input="$$5" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="7">
  264.         <expression clear="yes" repeat="yes">(?i)&lt;category[^&gt;]*weight=&quot;100&quot;&gt;[^&lt;]*&lt;name&gt;([^&lt;]+)&lt;/name&gt;</expression>
  265.       </RegExp>
  266.       <RegExp input="$INFO[GenreWeight]-$$7" output="\1" dest="6+">
  267.         <expression noclean="1">(?i)[^-]*100[^-]*-(.*)</expression>
  268.       </RegExp>
  269.       <RegExp input="$$17" output="\1" dest="6+">
  270.         <expression noclean="1" repeat="yes">(?i)(&lt;genre&gt;.*?&lt;/genre&gt;)</expression>
  271.       </RegExp>
  272.       <!-- Main genres filtering -->
  273.       <RegExp input="$$6" output="\1" dest="6">
  274.         <expression clear="yes" repeat="yes" noclean="1">(?i)(&lt;genre&gt;(?!Asia&lt;|Japan&lt;|Earth&lt;|Erotic game&lt;|Dating sim - Visual Novel&lt;|Game&lt;|Novel&lt;|Manga&lt;|Future&lt;|Present&lt;|Past&lt;|Plot continuity&lt;|Shipboard&lt;|New&lt;|Humanoid&lt;|Sudden Girlfriend Appearance&lt;|Gigantic Breasts&lt;|Large Breasts&lt;|Small Breasts&lt;|Boing&lt;|Sex&lt;|Stereotypes&lt;|Canada&lt;|Italy&lt;|United-Kingdom&lt;|Americas&lt;|United States&lt;|Female Students&lt;|Clubs&lt;|Other Planet&lt;|Europe&lt;|Twisted&lt;|Violent Retribution for Accidental Infringement&lt;)[^&lt;]+&lt;/genre&gt;)</expression>
  275.       </RegExp>
  276.       <!-- Ignore "Magic" if "Super Power" is present -->
  277.       <RegExp input="$$6" output="\1\2" dest="6">
  278.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Super Power&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Magic&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  279.       </RegExp>
  280.       <RegExp input="$$6" output="\1\2" dest="6">
  281.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Magic&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Super Power&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  282.       </RegExp>
  283.       <!-- Ignore "Magic" if "Mahou Shoujo" is present -->
  284.       <RegExp input="$$6" output="\1\2" dest="6">
  285.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Mahou Shoujo&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Magic&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  286.       </RegExp>
  287.       <RegExp input="$$6" output="\1\2" dest="6">
  288.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Magic&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Mahou Shoujo&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  289.       </RegExp>
  290.       <!-- Ignore "Super Power" if "Mahou Shoujo" is present -->
  291.       <RegExp input="$$6" output="\1\2" dest="6">
  292.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Mahou Shoujo&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Super Power&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  293.       </RegExp>
  294.       <RegExp input="$$6" output="\1\2" dest="6">
  295.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Super Power&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Mahou Shoujo&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  296.       </RegExp>
  297.       <!-- Ignore "Fantasy World" if "Fantasy" is present -->
  298.       <RegExp input="$$6" output="\1\2" dest="6">
  299.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Fantasy&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Fantasy World&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  300.       </RegExp>
  301.       <RegExp input="$$6" output="\1\2" dest="6">
  302.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Fantasy World&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Fantasy&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  303.       </RegExp>
  304.       <!-- Ignore "Fantasy" if "Contemporary Fantasy" is present -->
  305.       <RegExp input="$$6" output="\1\2" dest="6">
  306.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Contemporary Fantasy&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Fantasy&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  307.       </RegExp>
  308.       <RegExp input="$$6" output="\1\2" dest="6">
  309.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Fantasy&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Contemporary Fantasy&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  310.       </RegExp>
  311.       <!-- Ignore "Fantasy" if "Dark Fantasy" is present -->
  312.       <RegExp input="$$6" output="\1\2" dest="6">
  313.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Dark Fantasy&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Fantasy&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  314.       </RegExp>
  315.       <RegExp input="$$6" output="\1\2" dest="6">
  316.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Fantasy&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Dark Fantasy&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  317.       </RegExp>
  318.       <!-- Ignore "Catgirls" if "Juujin" is present -->
  319.       <RegExp input="$$6" output="\1\2" dest="6">
  320.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Juujin&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Catgirls&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  321.       </RegExp>
  322.       <RegExp input="$$6" output="\1\2" dest="6">
  323.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Catgirls&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Juujin&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  324.       </RegExp>
  325.       <!-- Ignore "Genetic Modification" if "Human Enhancement" is present -->
  326.       <RegExp input="$$6" output="\1\2" dest="6">
  327.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Human Enhancement&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Genetic Modification&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  328.       </RegExp>
  329.       <RegExp input="$$6" output="\1\2" dest="6">
  330.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Genetic Modification&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Human Enhancement&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  331.       </RegExp>
  332.       <!-- Ignore "Cyborgs" if "Human Enhancement" is present -->
  333.       <RegExp input="$$6" output="\1\2" dest="6">
  334.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Human Enhancement&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Cyborgs&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  335.       </RegExp>
  336.       <RegExp input="$$6" output="\1\2" dest="6">
  337.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Cyborgs&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Human Enhancement&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  338.       </RegExp>
  339.       <!-- Ignore "Transforming Robots" if "Piloted Robots" is present -->
  340.       <RegExp input="$$6" output="\1\2" dest="6">
  341.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Piloted Robots&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Transforming Robots&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  342.       </RegExp>
  343.       <RegExp input="$$6" output="\1\2" dest="6">
  344.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Transforming Robots&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Piloted Robots&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  345.       </RegExp>
  346.       <!-- Ignore "Piloted Robots" if "Mecha" is present -->
  347.       <RegExp input="$$6" output="\1\2" dest="6">
  348.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Mecha&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Piloted Robots&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  349.       </RegExp>
  350.       <RegExp input="$$6" output="\1\2" dest="6">
  351.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Piloted Robots&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Mecha&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  352.       </RegExp>
  353.       <!-- Ignore "Ninjas" if "Martial Arts" is present -->
  354.       <RegExp input="$$6" output="\1\2" dest="6">
  355.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Martial Arts&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Ninjas&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  356.       </RegExp>
  357.       <RegExp input="$$6" output="\1\2" dest="6">
  358.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Ninjas&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Martial Arts&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  359.       </RegExp>
  360.       <!-- Ignore "Cops" if "Special Squads" is present -->
  361.       <RegExp input="$$6" output="\1\2" dest="6">
  362.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Special Squads&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Cops&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  363.       </RegExp>
  364.       <RegExp input="$$6" output="\1\2" dest="6">
  365.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Cops&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Special Squads&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  366.       </RegExp>
  367.       <!-- Ignore "Space" if "Space Travel" is present -->
  368.       <RegExp input="$$6" output="\1\2" dest="6">
  369.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Space Travel&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Space&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  370.       </RegExp>
  371.       <RegExp input="$$6" output="\1\2" dest="6">
  372.         <expression noclean="1,2">(?i)((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?)&lt;genre&gt;Space&lt;/genre&gt;((?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*?&lt;genre&gt;Space Travel&lt;/genre&gt;(?:&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)*)</expression>
  373.       </RegExp>
  374.       <RegExp input="$$18" output="\1" dest="6">
  375.         <expression noclean="1" repeat="yes">(?i)(&lt;genre&gt;.*?&lt;/genre&gt;)</expression>
  376.       </RegExp>
  377.       <!-- Only specified number genres is overtaken -->
  378.       <RegExp input="$INFO[GenreCount]-$$6" output="\1\2\3\4\5\6\7\8\9" dest="8+">
  379.         <expression noclean="1,2,3,4,5,6,7,8,9">(?i)9-(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?</expression>
  380.       </RegExp>
  381.       <RegExp input="$INFO[GenreCount]-$$6" output="\1\2\3\4\5\6\7\8" dest="8+">
  382.         <expression noclean="1,2,3,4,5,6,7,8">(?i)8-(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?</expression>
  383.       </RegExp>
  384.       <RegExp input="$INFO[GenreCount]-$$6" output="\1\2\3\4\5\6\7" dest="8+">
  385.         <expression noclean="1,2,3,4,5,6,7">(?i)7-(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?</expression>
  386.       </RegExp>
  387.       <RegExp input="$INFO[GenreCount]-$$6" output="\1\2\3\4\5\6" dest="8+">
  388.         <expression noclean="1,2,3,4,5,6">(?i)6-(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?</expression>
  389.       </RegExp>
  390.       <RegExp input="$INFO[GenreCount]-$$6" output="\1\2\3\4\5" dest="8+">
  391.         <expression noclean="1,2,3,4,5">(?i)5-(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?</expression>
  392.       </RegExp>
  393.       <RegExp input="$INFO[GenreCount]-$$6" output="\1\2\3\4" dest="8+">
  394.         <expression noclean="1,2,3,4">(?i)4-(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?</expression>
  395.       </RegExp>
  396.       <RegExp input="$INFO[GenreCount]-$$6" output="\1\2\3" dest="8+">
  397.         <expression noclean="1,2,3">(?i)3-(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?</expression>
  398.       </RegExp>
  399.       <RegExp input="$INFO[GenreCount]-$$6" output="\1\2" dest="8+">
  400.         <expression noclean="1,2">(?i)2-(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)?</expression>
  401.       </RegExp>
  402.       <RegExp input="$INFO[GenreCount]-$$6" output="\1" dest="8+">
  403.         <expression noclean="1">(?i)1-(&lt;genre&gt;[^&lt;]+&lt;/genre&gt;)</expression>
  404.       </RegExp>
  405.       <RegExp input="$$1" output="\1" dest="6">
  406.         <expression clear="yes">&lt;description[^&gt;]*&gt;(.*?)&lt;/description&gt;</expression>
  407.       </RegExp>
  408.       <!-- Plot filtering -->
  409.       <RegExp input="$$6" output="\1 " dest="6">
  410.         <expression repeat="yes" noclean="1">([^\t]*)\t?</expression>
  411.       </RegExp>
  412.       <RegExp input="$$6" output="\1\2" dest="6">
  413.         <expression repeat="yes" noclean="1,2">([^\s]*)(?:(\s)\2*)?</expression>
  414.       </RegExp>    
  415.       <RegExp input="$$6" output="\1\2" dest="6">
  416.         <expression repeat="yes" noclean="1,2">([^\r\n]*)(?:(\r?\n)[ \t\r\n]*)?</expression>
  417.       </RegExp>    
  418.       <RegExp input="$$6" output="\1" dest="6">
  419.         <expression noclean="1">(?:\*\s?)?(.*)</expression>
  420.       </RegExp>
  421.       <RegExp input="$$6" output="\1 http://anidb.net/a666 []" dest="6">
  422.         <expression/>
  423.       </RegExp>
  424.       <RegExp input="$$6" output="\1\2" dest="6">
  425.         <expression repeat="yes" noclean="1,2">(?i)(.*?)http://anidb.net/[a-z]+[0-9]+\s\[([^]]*)]</expression>
  426.       </RegExp>
  427.       <RegExp input="$$6" output="\1 [url=][/url]" dest="6">
  428.         <expression/>
  429.       </RegExp>
  430.       <RegExp input="$$6" output="\1\2" dest="6">
  431.         <expression repeat="yes" noclean="1,2">(?i)(.*?)\[url=[^]]*]([^[]*)\[/url]</expression>
  432.       </RegExp>
  433.       <RegExp input="(?:quote from|quote|taken from|from the|from|source|by)" output="\1" dest="10">
  434.         <expression noclean="1"/>
  435.       </RegExp>
  436.       <RegExp input="(?:www)?\.?(?:ann|animenewsnetwork|animenfo|animnfo|myanimelist|animeondvd|animeacademy|mangaupdates|manga-updates|wikipedia|wiki)(\.:)?(?:com|net|org)?:?" output="\1" dest="11">
  437.         <expression noclean="1"/>
  438.       </RegExp>
  439.       <RegExp input="$$6" output="\1 [source]" dest="6">
  440.         <expression/>
  441.       </RegExp>
  442.       <RegExp input="$$6" output="\1" dest="6">
  443.         <expression repeat="yes" noclean="1">(?i)(.*?)(?:(\[)|(\()|\*)(?(2)[^]]|(?(3)[^)]|[^*]))*$$10(?(2)[^]]|(?(3)[^)]|[^*]))*(?(2)\]|(?(3)\)|\*))</expression>
  444.       </RegExp>
  445.       <RegExp input="$$6" output="\1 [http://]" dest="6">
  446.         <expression/>
  447.       </RegExp>
  448.       <RegExp input="$$6" output="\1" dest="6">
  449.         <expression repeat="yes" noclean="1">(?i)(.*?)(?:(\[)|(\()|\*)\s*http://(?(2)[^]]|(?(3)[^)]|[^*]))*(?(2)\]|(?(3)\)|\*))</expression>
  450.       </RegExp>
  451.       <RegExp input="$$6" output="\1 [animenewsnetwork]" dest="6">
  452.         <expression/>
  453.       </RegExp>
  454.       <RegExp input="$$6" output="\1" dest="6">
  455.         <expression repeat="yes" noclean="1">(?i)(.*?)(?:(\[)|(\()|\*)(?(2)[^]]|(?(3)[^)]|[^*]))*$$11(?(2)[^]]|(?(3)[^)]|[^*]))*(?(2)\]|(?(3)\)|\*))</expression>
  456.       </RegExp>
  457.       <RegExp input="$$6" output="\n\1\nfrom animenewsnetwork\n" dest="6">
  458.         <expression/>
  459.       </RegExp>
  460.       <RegExp input="$$6" output="\1" dest="6">
  461.         <expression repeat="yes" noclean="1">(?i)(.*?)\r?\n[^\r\n]*$$10[: ]*$$11[^\r\n]*</expression>
  462.       </RegExp>
  463.       <RegExp input="$$6" output="\n\1\nfrom http://\n" dest="6">
  464.         <expression/>
  465.       </RegExp>
  466.       <RegExp input="$$6" output="\1" dest="6">
  467.         <expression repeat="yes" noclean="1">(?i)(.*?)\r?\n[^\r\n]*$$10[: ]*http://[^\r\n]*</expression>
  468.       </RegExp>
  469.       <RegExp input="$$6" output="\n\1\nann summary\n" dest="6">
  470.         <expression/>
  471.       </RegExp>
  472.       <RegExp input="$$6" output="\1" dest="6">
  473.         <expression repeat="yes" noclean="1">(?i)(.*?)\r?\n[^\r\n]*$$11[ ]*(?:summary|decription)[^\r\n]*</expression>
  474.       </RegExp>
  475.       <RegExp input="$$6" output="\n\1\nhttp://\n" dest="6">
  476.         <expression/>
  477.       </RegExp>
  478.       <RegExp input="$$6" output="\1" dest="6">
  479.         <expression repeat="yes" noclean="1">(?i)(.*?)\r?\n[ ]*http://[^\r\n ]*</expression>
  480.       </RegExp>
  481.       <RegExp input="$$6" output="\n\1\nanimenfo\n" dest="6">
  482.         <expression/>
  483.       </RegExp>
  484.       <RegExp input="$$6" output="\1" dest="6">
  485.         <expression repeat="yes" noclean="1">(?i)(.*?)\r?\n[ ]*$$11[ ]*</expression>
  486.       </RegExp>
  487.       <RegExp input="$$6" output="\1 [i][/i]" dest="6">
  488.         <expression/>
  489.       </RegExp>
  490.       <RegExp input="$$6" output="\1" dest="6">
  491.         <expression repeat="yes" noclean="1">(?i)(.*?)\[i][^\[]*\[/i]</expression>
  492.       </RegExp>
  493.       <RegExp input="$$6" output="\n\1\ndescription by\n" dest="6">
  494.         <expression/>
  495.       </RegExp>
  496.       <RegExp input="$$6" output="\1" dest="6">
  497.         <expression repeat="yes" noclean="1">(?i)(.*?)\r?\n(\*|-)?(\*|-)?[ ]*(?:(?:description|written) by)[^\r\n]*</expression>
  498.       </RegExp>
  499.       <RegExp input="$$6" output="\1" dest="6">
  500.         <expression repeat="yes" noclean="1">(?i)(.*?)\r?\n[~-]\s+(?:translated and adapted|adapted and translated)[^\r\n]*cranston[^\r\n]*</expression>
  501.       </RegExp>
  502.       <RegExp input="$$6" output="\1" dest="6">
  503.         <expression noclean="1">(?:\r?\n)*(.*)</expression>
  504.       </RegExp>
  505.       <RegExp input="$$6" output="'\1" dest="6">
  506.         <expression repeat="yes" noclean="1">`?([^`]+)</expression>
  507.       </RegExp>
  508.       <RegExp input="$$6" output="\1" dest="6">
  509.         <expression noclean="1">'(.*)</expression>
  510.       </RegExp>
  511.       <RegExp input="$$6" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="16">
  512.         <expression clear="yes" noclean="1" trim="1"/>
  513.       </RegExp>
  514.       <RegExp input="$$18" output="\1" dest="16">
  515.         <expression noclean="1">(?i)(&lt;plot&gt;.*?&lt;/plot&gt;)</expression>
  516.       </RegExp>
  517.       <RegExp input="$$16" output="\1" dest="8+">
  518.         <expression noclean="1"/>
  519.       </RegExp>
  520.       <!-- Main character + optionaly Secondary character enumared as "Cast" -->
  521.       <RegExp input="$$1" output="\1" dest="6">
  522.         <expression clear="yes" noclean="1">(?i)&lt;characters&gt;(.*?)&lt;/characters&gt;</expression>
  523.       </RegExp>
  524.       <RegExp input="$$6" output="&lt;actor&gt;&lt;name&gt;\3&lt;/name&gt;&lt;role&gt;\1&lt;/role&gt;&lt;thumb&gt;http://img7.anidb.net/pics/anime/\2&lt;/thumb&gt;&lt;/actor&gt;" dest="16">
  525.         <expression clear="yes" repeat="yes">(?i)&lt;character.*?type=&quot;main character in&quot;[^&gt;]*&gt;.*?&lt;name&gt;([^&lt;]*)&lt;/name&gt;.*?&lt;seiyuu[^&gt;]*picture=&quot;([^&quot;]*)&quot;[^&gt;]*&gt;([^&lt;]*)&lt;/seiyuu&gt;.*?&lt;/character&gt;</expression>
  526.       </RegExp>
  527.       <RegExp conditional="!OnlyMainCast" input="$$6" output="&lt;actor&gt;&lt;name&gt;\3&lt;/name&gt;&lt;role&gt;\1&lt;/role&gt;&lt;thumb&gt;http://img7.anidb.net/pics/anime/\2&lt;/thumb&gt;&lt;/actor&gt;" dest="16+">
  528.         <expression repeat="yes">(?i)&lt;character.*?type=&quot;secondary cast in&quot;[^&gt;]*&gt;.*?&lt;name&gt;([^&lt;]*)&lt;/name&gt;.*?&lt;seiyuu[^&gt;]*picture=&quot;([^&quot;]*)&quot;[^&gt;]*&gt;([^&lt;]*)&lt;/seiyuu&gt;.*?&lt;/character&gt;</expression>
  529.       </RegExp>
  530.       <RegExp input="$$17" output="\1" dest="16+">
  531.         <expression noclean="1" repeat="yes">(?i)(&lt;actor&gt;.*?&lt;/actor&gt;)</expression>
  532.       </RegExp>
  533.       <RegExp input="$$18" output="\1" dest="16">
  534.         <expression noclean="1" repeat="yes">(?i)(&lt;actor&gt;.*?&lt;/actor&gt;)</expression>
  535.       </RegExp>
  536.       <RegExp input="$$16" output="\1" dest="8+">
  537.         <RegExp input="$$16" output="'\1" dest="16">
  538.           <expression clear="yes" repeat="yes" noclean="1">`?([^`]+)</expression>
  539.         </RegExp>
  540.         <expression noclean="1">'(.*)</expression>
  541.       </RegExp>
  542.       <!-- All "Original" and "Character" creators are enumerated as "Writter" -->
  543.       <RegExp input="$$1" output="\1" dest="6">
  544.         <expression clear="yes" noclean="1">(?i)&lt;creators&gt;(.*?)&lt;/creators&gt;</expression>
  545.       </RegExp>
  546.       <RegExp input="$$6" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="16">
  547.         <expression clear="yes" repeat="yes">(?i)&lt;name.*?type=&quot;(?:Original|Character)[^&gt;]*?&gt;(.*?)&lt;/name&gt;</expression>
  548.       </RegExp>
  549.       <RegExp input="$$17" output="\1" dest="16+">
  550.         <expression noclean="1" repeat="yes">(?i)(&lt;credits&gt;.*?&lt;/credits&gt;)</expression>
  551.       </RegExp>
  552.       <RegExp input="$$18" output="\1" dest="16">
  553.         <expression noclean="1" repeat="yes">(?i)(&lt;credits&gt;.*?&lt;/credits&gt;)</expression>
  554.       </RegExp>
  555.       <RegExp input="$$16" output="\1" dest="8+">
  556.         <RegExp input="$$16" output="'\1" dest="16">
  557.           <expression clear="yes" repeat="yes" noclean="1">`?([^`]+)</expression>
  558.         </RegExp>
  559.         <expression noclean="1">'(.*)</expression>
  560.       </RegExp>
  561.       <!-- All "Direction" creators are enumerated as "Director" -->
  562.       <RegExp input="$$6" output="&lt;director&gt;\1&lt;/director&gt;" dest="16">
  563.         <expression clear="yes" repeat="yes">(?i)&lt;name.*?type=&quot;Direction&quot;&gt;(.*?)&lt;/name&gt;</expression>
  564.       </RegExp>
  565.       <RegExp input="$$17" output="\1" dest="16+">
  566.         <expression noclean="1" repeat="yes">(?i)(&lt;director&gt;.*?&lt;/director&gt;)</expression>
  567.       </RegExp>
  568.       <RegExp input="$$18" output="\1" dest="16">
  569.         <expression noclean="1" repeat="yes">(?i)(&lt;director&gt;.*?&lt;/director&gt;)</expression>
  570.       </RegExp>
  571.       <RegExp input="$$16" output="\1" dest="8+">
  572.         <RegExp input="$$16" output="'\1" dest="16">
  573.           <expression clear="yes" repeat="yes" noclean="1">`?([^`]+)</expression>
  574.         </RegExp>
  575.         <expression noclean="1">'(.*)</expression>
  576.       </RegExp>
  577.       <RegExp conditional="SingleStudio" input="$$11$$10$$13$$12" output="\1" dest="8+">
  578.         <!-- "Animation work" studios has priority over "Work" studios bellow ($$13,$$12) -->
  579.         <RegExp input="$$6" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="10">
  580.           <expression clear="yes" repeat="yes">(?i)&lt;name.*?type=&quot;Animation Work&quot;&gt;([^&lt;]+)&lt;/name&gt;</expression>
  581.         </RegExp>
  582.         <RegExp input="$$17" output="\1" dest="10+">
  583.           <expression noclean="1" repeat="yes">(?i)(&lt;studio&gt;.*?&lt;/studio&gt;)</expression>
  584.         </RegExp>
  585.         <RegExp input="$$18" output="\1" dest="10">
  586.           <expression noclean="1" repeat="yes">(?i)(&lt;studio&gt;.*?&lt;/studio&gt;)</expression>
  587.         </RegExp>
  588.         <RegExp input="$$10" output="\1" dest="10">
  589.           <RegExp input="$$10" output="'\1" dest="10">
  590.             <expression clear="yes" repeat="yes" noclean="1">`?([^`]+)</expression>
  591.           </RegExp>
  592.           <expression clear="yes" noclean="1">'(.*)</expression>
  593.         </RegExp>
  594.         <!-- These studios has priority before rest bellow or not-enumerated ones ($$10) -->
  595.         <RegExp input="$$10" output="\1" dest="11">
  596.           <expression clear="yes" noclean="1">(?i)(&lt;studio&gt;(?=A-1 Pictures&lt;|AIC&lt;|Bee Train&lt;|Bones&lt;|Brain's Base&lt;|Gainax&lt;|Gonzo&lt;|J\.C\.Staff&lt;|Kyoto Animation&lt;|Madhouse&lt;|Manglobe&lt;|Nomad&lt;|Production I\.G&lt;|Shaft&lt;|Studio Deen&lt;|Studio Pierrot&lt;|Sunrise&lt;|Xebec&lt;|ZEXCS&lt;)[^&lt;]+&lt;/studio&gt;)</expression>
  597.         </RegExp>
  598.         <RegExp input="$$10" output="\1" dest="11+">
  599.           <expression noclean="1">(?i)(&lt;studio&gt;(?=A-1 Pictures&lt;|ACGT&lt;|Actas&lt;|AIC A\.S\.T\.A&lt;|AIC Digital&lt;|AIC Plus\+&lt;|AIC Spirits&lt;|AIC&lt;|Ajia-dou&lt;|Animate Film&lt;|Anime Friend&lt;|Aquaplus&lt;|Arcturus&lt;|Arms&lt;|Artland&lt;|Artmic&lt;|Ashi Productions&lt;|Bee Train&lt;|Bones&lt;|Brain's Base&lt;|CoMix Wave Films&lt;|Daume&lt;|David Production&lt;|Diomedea&lt;|Doga Kobo&lt;|E&amp;G Films&lt;|G&amp;G Entertainment&lt;|G&amp;G Entertainmnt&lt;|Gainax&lt;|GK Entertainment&lt;|Gonzo&lt;|Group Tac&lt;|Hal Film Maker&lt;|Imagin&lt;|J\.C\.Staff&lt;|Karaku&lt;|Keyeast&lt;|Kyoto Animation&lt;|Madhouse&lt;|Manglobe&lt;|Nippon Animation&lt;|Nomad&lt;|OB Planning&lt;|OLM&lt;|Ordet&lt;|P\.A\. Works&lt;|Production I\.G&lt;|Radix Ace Entertainment&lt;|Radix&lt;|Satelight&lt;|Seven Arcs&lt;|Shaft&lt;|Studio 4C&lt;|Studio Barcelona&lt;|Studio Comet&lt;|Studio Deen&lt;|Studio Fantasia&lt;|Studio Ghibli&lt;|Studio Guts&lt;|Studio Hibari&lt;|Studio Izena&lt;|Studio Pierrot&lt;|Studio Rikka&lt;|Sunrise&lt;|Synergy Japan&lt;|SynergySP&lt;|Tatsunoko Production&lt;|Tezuka Productions&lt;|TMS Entertainment&lt;|Toei Animation&lt;|Toei Douga&lt;|Tokyo Movie&lt;|Trans Arts&lt;|Triangle Staff&lt;|Ufotable&lt;|White Fox&lt;|Xebec M2&lt;|Xebec&lt;|Yumeta Company&lt;|Zero G Room&lt;|ZEXCS&lt;)[^&lt;]+&lt;/studio&gt;)</expression>
  600.         </RegExp>
  601.         <!-- Same as above only for "Work" studios -->
  602.         <RegExp input="$$6" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="12">
  603.           <expression clear="yes" repeat="yes">(?i)&lt;name.*?type=&quot;Work&quot;&gt;([^&lt;]+)&lt;/name&gt;</expression>
  604.         </RegExp>
  605.         <RegExp input="$$12" output="\1" dest="12">
  606.           <RegExp input="$$12" output="'\1" dest="12">
  607.             <expression clear="yes" repeat="yes" noclean="1">`?([^`]+)</expression>
  608.           </RegExp>
  609.           <expression clear="yes" noclean="1">'(.*)</expression>
  610.         </RegExp>
  611.         <RegExp input="$$12" output="\1" dest="13">
  612.           <expression clear="yes" noclean="1">(?i)(&lt;studio&gt;(?=A-1 Pictures&lt;|AIC&lt;|Bee Train&lt;|Bones&lt;|Brain's Base&lt;|Gainax&lt;|Gonzo&lt;|J\.C\.Staff&lt;|Kyoto Animation&lt;|Madhouse&lt;|Manglobe&lt;|Nomad&lt;|Production I\.G&lt;|Shaft&lt;|Studio Deen&lt;|Studio Pierrot&lt;|Sunrise&lt;|Xebec&lt;|ZEXCS&lt;)[^&lt;]+&lt;/studio&gt;)</expression>
  613.         </RegExp>
  614.         <RegExp input="$$12" output="\1" dest="13+">
  615.           <expression noclean="1">(?i)(&lt;studio&gt;(?=A-1 Pictures&lt;|ACGT&lt;|Actas&lt;|AIC A\.S\.T\.A&lt;|AIC Digital&lt;|AIC Plus\+&lt;|AIC Spirits&lt;|AIC&lt;|Ajia-dou&lt;|Animate Film&lt;|Anime Friend&lt;|Aquaplus&lt;|Arcturus&lt;|Arms&lt;|Artland&lt;|Artmic&lt;|Ashi Productions&lt;|Bee Train&lt;|Bones&lt;|Brain's Base&lt;|CoMix Wave Films&lt;|Daume&lt;|David Production&lt;|Diomedea&lt;|Doga Kobo&lt;|E&amp;G Films&lt;|G&amp;G Entertainment&lt;|G&amp;G Entertainmnt&lt;|Gainax&lt;|GK Entertainment&lt;|Gonzo&lt;|Group Tac&lt;|Hal Film Maker&lt;|Imagin&lt;|J\.C\.Staff&lt;|Karaku&lt;|Keyeast&lt;|Kyoto Animation&lt;|Madhouse&lt;|Manglobe&lt;|Nippon Animation&lt;|Nomad&lt;|OB Planning&lt;|OLM&lt;|Ordet&lt;|P\.A\. Works&lt;|Production I\.G&lt;|Radix Ace Entertainment&lt;|Radix&lt;|Satelight&lt;|Seven Arcs&lt;|Shaft&lt;|Studio 4C&lt;|Studio Barcelona&lt;|Studio Comet&lt;|Studio Deen&lt;|Studio Fantasia&lt;|Studio Ghibli&lt;|Studio Guts&lt;|Studio Hibari&lt;|Studio Izena&lt;|Studio Pierrot&lt;|Studio Rikka&lt;|Sunrise&lt;|Synergy Japan&lt;|SynergySP&lt;|Tatsunoko Production&lt;|Tezuka Productions&lt;|TMS Entertainment&lt;|Toei Animation&lt;|Toei Douga&lt;|Tokyo Movie&lt;|Trans Arts&lt;|Triangle Staff&lt;|Ufotable&lt;|White Fox&lt;|Xebec M2&lt;|Xebec&lt;|Yumeta Company&lt;|Zero G Room&lt;|ZEXCS&lt;)[^&lt;]+&lt;/studio&gt;)</expression>
  616.         </RegExp>
  617.         <!-- Only first studio is overtaken, order is result of joint $$11$$10$$13$$12 -->
  618.         <expression noclean="1">(&lt;studio&gt;.+?&lt;/studio&gt;)</expression>
  619.       </RegExp>
  620.       <RegExp conditional="!SingleStudio" input="$$7" output="\1" dest="8+">
  621.         <!-- All studios found are overtaken -->
  622.         <RegExp input="$$6" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="7">
  623.           <expression clear="yes" repeat="yes">(?i)&lt;name.*?type=&quot;Work&quot;&gt;([^&lt;]+)&lt;/name&gt;</expression>
  624.         </RegExp>
  625.         <!-- But "Animation Work" has priority and if there is any then "Work" studios are overwritten -->
  626.         <RegExp input="$$6" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="7">
  627.           <expression repeat="yes">(?i)&lt;name.*?type=&quot;Animation Work&quot;&gt;([^&lt;]+)&lt;/name&gt;</expression>
  628.         </RegExp>
  629.         <RegExp input="$$17" output="\1" dest="7+">
  630.           <expression noclean="1" repeat="yes">(?i)(&lt;studio&gt;.*?&lt;/studio&gt;)</expression>
  631.         </RegExp>
  632.         <RegExp input="$$18" output="\1" dest="7">
  633.           <expression noclean="1" repeat="yes">(?i)(&lt;studio&gt;.*?&lt;/studio&gt;)</expression>
  634.         </RegExp>
  635.         <expression noclean="1"/>
  636.       </RegExp>
  637.       <RegExp input="" output="" dest="14">
  638.         <expression clear="yes"/>
  639.       </RegExp>
  640.       <RegExp input="" output="" dest="15">
  641.         <expression clear="yes"/>
  642.       </RegExp>
  643.       <RegExp conditional="Posters" input="$$1" output="&lt;thumb&gt;http://img7.anidb.net/pics/anime/\1&lt;/thumb&gt;" dest="15">
  644.         <expression>(?i)&lt;picture&gt;([^&lt;]+)&lt;/picture&gt;</expression>
  645.       </RegExp>
  646.       <RegExp conditional="Posters" input="$$17" output="\1" dest="15+">
  647.         <expression noclean="1" repeat="yes">(?i)(&lt;thumb&gt;.*?&lt;/thumb&gt;)</expression>
  648.       </RegExp>
  649.       <RegExp conditional="Posters" input="$$18" output="\1" dest="15">
  650.         <expression noclean="1" repeat="yes">(?i)(&lt;thumb&gt;.*?&lt;/thumb&gt;)</expression>
  651.       </RegExp>
  652.       <RegExp input="" output="" dest="16">
  653.         <expression clear="yes"/>
  654.       </RegExp>
  655.       <RegExp conditional="Fanarts" input="$$18" output="\1" dest="16">
  656.         <expression noclean="1">(?i)&lt;fanart&gt;(.*)&lt;/fanart&gt;</expression>
  657.       </RegExp>
  658.       <RegExp input="$$20" output="&lt;episodeguide&gt;&lt;url gzip=&quot;yes&quot; cache=&quot;$$20.xml&quot;&gt;http://api.anidb.net:9001/httpapi?request=anime&amp;client=xbmcscrap&amp;clientver=1&amp;protover=1&amp;aid=$$20&lt;/url&gt;&lt;/episodeguide&gt;" dest="8+">
  659.         <expression/>
  660.       </RegExp>
  661.       <RegExp input="$$19" output="\1" dest="12">
  662.         <expression clear="yes">(?i)imdbid=&quot;([^&quot;]*)&quot;</expression>
  663.       </RegExp>
  664.       <RegExp input="$$19" output="\1" dest="12">
  665.         <expression>(?i)tmdbid=&quot;([^&quot;]*)&quot;</expression>
  666.       </RegExp>
  667.       <RegExp input="$$19" output="\1" dest="19">
  668.         <expression clear="yes">(?i)tvdbid=&quot;([^&quot;]*)&quot;</expression>
  669.       </RegExp>
  670.       <RegExp input="$$12$$19" output="&lt;url function=&quot;GetTVDBLookupAPI&quot; cache=&quot;$$20.xml&quot;&gt;&amp;&lt;/url&gt;" dest="6">
  671.         <expression clear="yes">(?!.)</expression>
  672.       </RegExp>
  673.       <RegExp conditional="Fanarts" input="$$12" output="&lt;url function=&quot;GetTMDBFanartAPI&quot; cache=&quot;tmdb-images-$$20-\1.json&quot;&gt;http://api.themoviedb.org/3/movie/\1/images?api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="6">
  674.         <expression repeat="yes">((?:tt)?\d+),?</expression>
  675.       </RegExp>
  676.       <RegExp input="$$19" output="&lt;url function=&quot;GetFanartDataAPI&quot; cache=&quot;tvdb-$$20.xml&quot;&gt;http://www.thetvdb.com/api/1D62F2F90030C444/series/\1/all/en.zip&lt;/url&gt;" dest="6+">
  677.         <expression>(\d+)</expression>
  678.       </RegExp>
  679.       <RegExp input="$$19" output="&lt;url function=&quot;GetFanartDataReturnAPI&quot; cache=&quot;$$20.xml&quot;&gt;&amp;&lt;/url&gt;" dest="6+">
  680.         <expression>[^\d]+</expression>
  681.       </RegExp>
  682.       <RegExp input="$$6" output="\1" dest="8+">
  683.         <expression noclean="1"/>
  684.       </RegExp>
  685.       <RegExp input="" output="" dest="1">
  686.         <expression clear="yes"/>
  687.       </RegExp>
  688.       <RegExp input="true" output="\1" dest="13">
  689.         <expression clear="yes"/>
  690.       </RegExp>
  691.       <expression noclean="1"/>
  692.     </RegExp>
  693.   </GetDetailsExt>
  694.  
  695.   <!--
  696.    Persistent variables:
  697.    $$20 ... AniDB anime id
  698.    $$19 ... TheTvDb anime id
  699.    $$18 ... Alternative titles for TheTvDb search
  700.    $$17 ... AniDB prequel id
  701.    $$16 ... List of fanarts
  702.    $$15 ... List of thumbs
  703.    $$14 ... List of banners
  704.    $$13 ... Direct call to GetFanartDataAPI (true/false)
  705.         $$12 ... IMDb/TMDb anime id
  706.  -->
  707.  
  708.   <GetTVDBLookupAPI clearbuffers="no" dest="4">
  709.     <RegExp input="$$9" output="&lt;details&gt;&lt;url function=&quot;GetFanartAPI&quot; cache=&quot;tvdb-s$$20-\1.xml&quot;&gt;http://www.thetvdb.com/api/GetSeries.php?seriesname=\1&lt;/url&gt;&lt;/details&gt;" dest="4">
  710.       <RegExp input="$$1" output="\1" dest="5">
  711.         <expression clear="yes" trim="1">(?i)&lt;title.*?type=&quot;main&quot;&gt;([^&lt;]+)&lt;/title&gt;</expression>
  712.       </RegExp>
  713.       <RegExp input="$$1" output="\1" dest="6">
  714.         <expression clear="yes" trim="1">(?i)&lt;title\s+xml:lang=&quot;en&quot;\s+type=&quot;official&quot;&gt;((?!$$5&lt;)[^&lt;]+)&lt;/title&gt;</expression>
  715.       </RegExp>
  716.       <RegExp input="$$1" output="\1" dest="7">
  717.         <expression clear="yes" trim="1">(?i)&lt;title\s+xml:lang=&quot;x-jat&quot;\s+type=&quot;synonym&quot;&gt;((?!$$5&lt;|$$6&lt;)[^&lt;]+)&lt;/title&gt;</expression>
  718.       </RegExp>
  719.       <RegExp input="$$1" output="\1" dest="8">
  720.         <expression clear="yes" trim="1">(?i)&lt;title\s+xml:lang=&quot;en&quot;\s+type=&quot;synonym&quot;&gt;((?!$$5&lt;|$$6&lt;|$$7&lt;)[^&lt;]+)&lt;/title&gt;</expression>
  721.       </RegExp>
  722.       <RegExp input="$$9" output="\1" dest="9">
  723.         <RegExp input="$$5" output="'\1" dest="9">
  724.           <expression clear="yes" repeat="yes">`?([^`]+)</expression>
  725.         </RegExp>
  726.         <expression>'(.*)</expression>
  727.       </RegExp>
  728.       <RegExp input="$$9" output="\1%20" dest="9">
  729.         <expression repeat="yes">([a-zA-Z0-9'!-.]+)</expression>
  730.       </RegExp>
  731.       <RegExp input="$$9" output="\1" dest="9">
  732.         <expression noclean="1">(.+)%20</expression>
  733.       </RegExp>
  734.       <RegExp input="$$10" output="\1" dest="10">
  735.         <RegExp input="$$6" output="'\1" dest="10">
  736.           <expression clear="yes" repeat="yes">`?([^`]+)</expression>
  737.         </RegExp>
  738.         <expression>'(.*)</expression>
  739.       </RegExp>
  740.       <RegExp input="$$10" output="\1%20" dest="10">
  741.         <expression repeat="yes">([a-zA-Z0-9'!-.]+)</expression>
  742.       </RegExp>
  743.       <RegExp input="$$10" output="&lt;title&gt;\1&lt;/title&gt;" dest="18">
  744.         <expression clear="yes" noclean="1">(.+)%20</expression>
  745.       </RegExp>
  746.       <RegExp input="$$10" output="\1" dest="10">
  747.         <RegExp input="$$7" output="'\1" dest="10">
  748.           <expression clear="yes" repeat="yes">`?([^`]+)</expression>
  749.         </RegExp>
  750.         <expression>'(.*)</expression>
  751.       </RegExp>
  752.       <RegExp input="$$10" output="\1%20" dest="10">
  753.         <expression repeat="yes">([a-zA-Z0-9'!-.]+)</expression>
  754.       </RegExp>
  755.       <RegExp input="$$10" output="&lt;title&gt;\1&lt;/title&gt;" dest="10">
  756.         <expression clear="yes" noclean="1">(.+)%20</expression>
  757.       </RegExp>
  758.       <RegExp input="$$10" output="\1" dest="18+">
  759.         <expression noclean="1"/>
  760.       </RegExp>
  761.       <RegExp input="$$10" output="\1" dest="10">
  762.         <RegExp input="$$8" output="'\1" dest="10">
  763.           <expression clear="yes" repeat="yes">`?([^`]+)</expression>
  764.         </RegExp>
  765.         <expression>'(.*)</expression>
  766.       </RegExp>
  767.       <RegExp input="$$10" output="\1%20" dest="10">
  768.         <expression repeat="yes">([a-zA-Z0-9'!-.]+)</expression>
  769.       </RegExp>
  770.       <RegExp input="$$10" output="&lt;title&gt;\1&lt;/title&gt;" dest="10">
  771.         <expression clear="yes" noclean="1">(.+)%20</expression>
  772.       </RegExp>
  773.       <RegExp input="$$10" output="\1" dest="18+">
  774.         <expression noclean="1"/>
  775.       </RegExp>
  776.       <RegExp input="false" output="\1" dest="13">
  777.         <expression clear="yes"/>
  778.       </RegExp>
  779.       <RegExp conditional="Prequels" input="$$10" output="\1" dest="17">
  780.         <RegExp input="$$1" output="\1" dest="10">
  781.           <expression clear="yes">(?i)&lt;anime id=&quot;(\d+)&quot; type=&quot;$INFO[AlternativePrequelLinkType]&quot;&gt;</expression>
  782.         </RegExp>
  783.         <RegExp input="$$1" output="\1" dest="10">
  784.           <expression>(?i)&lt;anime id=&quot;(\d+)&quot; type=&quot;Prequel&quot;&gt;</expression>
  785.         </RegExp>
  786.         <expression clear="yes">(\d+)</expression>
  787.       </RegExp>
  788.       <RegExp input="" output="" dest="1">
  789.         <expression clear="yes"/>
  790.       </RegExp>
  791.       <expression noclean="1"/>
  792.     </RegExp>              
  793.   </GetTVDBLookupAPI>
  794.  
  795.   <GetTVDBLookupLoopAPI clearbuffers="no" dest="4">
  796.     <RegExp input="$$4" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
  797.       <RegExp input="$$8" output="&lt;url function=&quot;GetFanartAPI&quot; cache=&quot;tvdb-s$$20-\1.xml&quot;&gt;http://www.thetvdb.com/api/GetSeries.php?seriesname=\1&lt;/url&gt;" dest="5">
  798.         <RegExp input="$$18" output="\1" dest="8">
  799.           <expression clear="yes" noclean="1">(?i)&lt;title&gt;([^&lt;]+)&lt;/title&gt;</expression>
  800.         </RegExp>
  801.         <expression clear="yes" noclean="1">(.+)</expression>
  802.       </RegExp>
  803.       <RegExp conditional="Prequels" input="$$17" output="&lt;url function=&quot;GetTVDBLookupAPI&quot; gzip=&quot;yes&quot; cache=&quot;\1.xml&quot;&gt;http://api.anidb.net:9001/httpapi?request=anime&amp;client=xbmcscrap&amp;clientver=1&amp;protover=1&amp;aid=\1&lt;/url&gt;" dest="6">
  804.         <expression clear="yes">(\d+)</expression>
  805.       </RegExp>
  806.       <RegExp input="$$20" output="&lt;url function=&quot;GetFanartDataReturnAPI&quot; cache=&quot;\1.xml&quot;&gt;&amp;&lt;/url&gt;" dest="7">
  807.         <expression clear="yes"/>
  808.       </RegExp>
  809.       <RegExp input="$$5$$6$$7" output="\1" dest="4">
  810.         <expression clear="yes" noclean="1">(?i)(&lt;url.*?&lt;/url&gt;)</expression>
  811.       </RegExp>
  812.       <RegExp input="$$18-$$4" output="\1" dest="18">
  813.         <expression noclean="1">(?i)&lt;title&gt;[^&lt;]+&lt;/title&gt;((?:&lt;title&gt;[^&lt;]+&lt;/title&gt;)*)-\Q$$5\E</expression>
  814.       </RegExp>
  815.       <RegExp input="$$17-$$4" output="\1" dest="20">
  816.         <expression>(\d+)-\Q$$6\E</expression>
  817.       </RegExp>
  818.       <RegExp input="$$4" output="\1" dest="17">
  819.         <expression>()\Q$$6\E</expression>
  820.       </RegExp>
  821.       <RegExp input="" output="" dest="1">
  822.         <expression clear="yes"/>
  823.       </RegExp>
  824.       <expression noclean="1"/>
  825.     </RegExp>
  826.   </GetTVDBLookupLoopAPI>
  827.  
  828.   <GetFanartAPI clearbuffers="no" dest="4">
  829.     <!--RegExp input="$$4" output="&lt;details&gt;\1&lt;/details&gt;      @@@### $$5 ###@@@" dest="4"-->
  830.     <RegExp input="$$4" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
  831.       <RegExp input="$$20" output="&lt;url function=&quot;GetTVDBLookupLoopAPI&quot; cache=&quot;\1.xml&quot;&gt;&amp;&lt;/url&gt;" dest="4">
  832.         <expression clear="yes"/>
  833.       </RegExp>
  834.       <RegExp input="$$1" output="&lt;url function=&quot;GetFanartDataAPI&quot; cache=&quot;tvdb-$$20.xml&quot;&gt;http://www.thetvdb.com/api/1D62F2F90030C444/series/\1/all/en.zip&lt;/url&gt;" dest="4">
  835.         <expression>(?i)&lt;seriesid&gt;(\d+)&lt;/seriesid&gt;</expression>
  836.       </RegExp>
  837.       <RegExp input="$$1" output="&lt;anime anidbid=&quot;$$20&quot; tvdbid=&quot;\1&quot; defaulttvdbseason=&quot;1&quot;&gt;&lt;name&gt;$$20&lt;/name&gt;&lt;/anime&gt;" dest="5">
  838.         <expression clear="yes">(?i)&lt;seriesid&gt;(\d+)&lt;/seriesid&gt;</expression>
  839.       </RegExp>
  840.       <RegExp input="$$1" output="\1" dest="19">
  841.         <expression>(?i)&lt;seriesid&gt;(\d+)&lt;/seriesid&gt;</expression>
  842.       </RegExp>
  843.       <RegExp input="" output="" dest="1">
  844.         <expression clear="yes"/>
  845.       </RegExp>
  846.       <expression noclean="1"/>
  847.     </RegExp>
  848.   </GetFanartAPI>
  849.  
  850.   <GetFanartDataReturnAPI clearbuffers="no" dest="4">
  851.     <RegExp input="$$6$$5&lt;fanart&gt;$$16&lt;/fanart&gt;" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
  852.       <RegExp input="$INFO[IdFrom]-$$19" output="&lt;id&gt;\1&lt;/id&gt;" dest="6">
  853.         <expression clear="yes">TheTVDB\.com-(\d+)</expression>
  854.       </RegExp>
  855.       <RegExp input="" output="$$15$$14" dest="5">
  856.         <expression clear="yes"/>
  857.       </RegExp>      
  858.       <RegExp input="$INFO[PostersOrder]" output="$$15$$14" dest="5">
  859.         <expression>Posters first</expression>
  860.       </RegExp>      
  861.       <RegExp input="$INFO[PostersOrder]" output="$$14$$15" dest="5">
  862.         <expression>Banners first</expression>
  863.       </RegExp>
  864.       <RegExp input="" output="" dest="1">
  865.         <expression clear="yes"/>
  866.       </RegExp>
  867.       <expression noclean="1"/>
  868.     </RegExp>
  869.   </GetFanartDataReturnAPI>
  870.  
  871.   <GetFanartDataAPI clearbuffers="no" dest="4">
  872.     <RegExp input="$$4" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
  873.       <RegExp input="$$1" output="\1" dest="5">
  874.         <expression clear="yes" noclean="1">(?i)&lt;Banners&gt;(.*?)&lt;/Banners&gt;</expression>
  875.       </RegExp>
  876.       <RegExp conditional="Fanarts" input="$$6" output="\1" dest="16+">
  877.         <RegExp input="$$5" output="&lt;thumb dim=&quot;\2&quot; colors=&quot;\3&quot; preview=&quot;http://thetvdb.com/banners/_cache/\1&quot;&gt;http://thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6">
  878.           <expression clear="yes" repeat="yes">(?i)&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;fanart&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;([^&lt;]*)&lt;/BannerType2&gt;[^&lt;]*&lt;Colors&gt;([^&lt;]*)&lt;/Colors&gt;</expression>
  879.         </RegExp>
  880.         <expression noclean="1">(.+)</expression>
  881.       </RegExp>
  882.       <RegExp conditional="Posters" input="$$5" output="&lt;thumb&gt;http://thetvdb.com/banners/\1&lt;/thumb&gt;" dest="15+">
  883.         <expression repeat="yes">(?i)&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;poster&lt;/BannerType&gt;</expression>
  884.       </RegExp>
  885.       <RegExp conditional="Posters" input="$$5" output="&lt;thumb&gt;http://thetvdb.com/banners/\1&lt;/thumb&gt;" dest="15+">
  886.         <expression repeat="yes">(?i)&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;season&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;season&lt;/BannerType2&gt;</expression>
  887.       </RegExp>
  888.       <RegExp conditional="Banners" input="$$5" output="&lt;thumb&gt;http://thetvdb.com/banners/\1&lt;/thumb&gt;" dest="14+">
  889.         <expression repeat="yes">(?i)&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;season&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;seasonwide&lt;/BannerType2&gt;</expression>
  890.       </RegExp>
  891.       <RegExp conditional="Banners" input="$$5" output="&lt;thumb&gt;http://thetvdb.com/banners/\1&lt;/thumb&gt;" dest="14+">
  892.         <expression repeat="yes">(?i)&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;series&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;graphical&lt;/BannerType2</expression>
  893.       </RegExp>
  894.       <RegExp conditional="Banners" input="$$5" output="&lt;thumb&gt;http://thetvdb.com/banners/\1&lt;/thumb&gt;" dest="14+">
  895.         <expression repeat="yes">(?i)&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;series&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;text&lt;/BannerType2</expression>
  896.       </RegExp>
  897.       <RegExp conditional="Banners" input="$$5" output="&lt;thumb&gt;http://thetvdb.com/banners/\1&lt;/thumb&gt;" dest="14+">
  898.         <expression repeat="yes">(?i)&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;series&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;blank&lt;/BannerType2</expression>
  899.       </RegExp>
  900.       <RegExp input="" output="" dest="4">
  901.         <expression clear="yes"/>
  902.       </RegExp>
  903.       <RegExp conditional="NoFanartContinue" input="$$16" output="&lt;url function=&quot;GetTVDBLookupLoopAPI&quot; cache=&quot;$$20.xml&quot;&gt;&amp;&lt;/url&gt;" dest="4">
  904.         <expression/>
  905.       </RegExp>
  906.       <RegExp input="$$13" output="&lt;url function=&quot;GetFanartDataReturnAPI&quot; cache=&quot;$$20.xml&quot;&gt;&amp;&lt;/url&gt;" dest="4">
  907.         <expression>true</expression>
  908.       </RegExp>
  909.       <RegExp conditional="NoFanartContinue" input="$$16" output="&lt;url function=&quot;GetFanartDataReturnAPI&quot; cache=&quot;$$20.xml&quot;&gt;&amp;&lt;/url&gt;" dest="4">
  910.         <expression>.+</expression>
  911.       </RegExp>
  912.       <RegExp conditional="!NoFanartContinue" input="$$16" output="&lt;url function=&quot;GetFanartDataReturnAPI&quot; cache=&quot;$$20.xml&quot;&gt;&amp;&lt;/url&gt;" dest="4">
  913.         <expression/>
  914.       </RegExp>
  915.       <RegExp input="" output="" dest="1">
  916.         <expression clear="yes"/>
  917.       </RegExp>
  918.       <expression noclean="1"/>
  919.     </RegExp>
  920.   </GetFanartDataAPI>
  921.  
  922.   <GetTMDBFanartAPI clearbuffers="no" dest="4">
  923.     <RegExp input="" output="&lt;details&gt;&lt;details&gt;" dest="4">
  924.       <RegExp input="$$9" output="\1" dest="16+">
  925.         <RegExp input="$$1" output="\1" dest="7">
  926.           <expression clear="yes" noclean="1">&quot;backdrops&quot;:\[{([^\]]*)</expression>
  927.         </RegExp>
  928.         <RegExp input="$$7" output="&lt;thumb preview=&quot;http://cf2.imgobject.com/t/p/w780\1&quot;&gt;http://cf2.imgobject.com/t/p/original\1&lt;/thumb&gt;" dest="9">
  929.           <expression repeat="yes" noclean="1">&quot;file_path&quot;:&quot;([^&quot;]*)</expression>
  930.         </RegExp>
  931.         <expression noclean="1">(.+)</expression>
  932.       </RegExp>
  933.       <expression/>
  934.     </RegExp>
  935.   </GetTMDBFanartAPI>
  936.  
  937.   <GetEpisodeList clearbuffers="yes" dest="4">
  938.     <RegExp input="$$8" output="&lt;episodeguide&gt;\1&lt;/episodeguide&gt;" dest="4">
  939.       <RegExp input="$$1" output="\1" dest="20">
  940.         <expression>&lt;anime id=&quot;(\d+)&quot;</expression>
  941.       </RegExp>
  942.       <RegExp input="$$1" output="\1" dest="6">
  943.         <expression clear="yes" noclean="1">(?i)&lt;characters&gt;.*?&lt;/characters&gt;.*?(&lt;episodes&gt;.*?&lt;/episodes&gt;)</expression>
  944.       </RegExp>
  945.       <RegExp input="$$1" output="\1" dest="6+">
  946.         <expression noclean="1">(?i)(&lt;episodes&gt;.*?&lt;/episodes&gt;)</expression>
  947.       </RegExp>
  948.       <RegExp input="$$6" output="\1" dest="7">
  949.         <expression clear="yes" noclean="1">(?i)&lt;episodes&gt;(.*?)&lt;/episodes&gt;</expression>
  950.       </RegExp>
  951.       <RegExp input="$$7" output="&lt;episode&gt;&lt;title&gt;\4&lt;/title&gt;&lt;url cache=&quot;$$20.xml&quot;&gt;\1&lt;/url&gt;&lt;epnum&gt;\2&lt;/epnum&gt;&lt;season&gt;1&lt;/season&gt;&lt;id&gt;\1&lt;/id&gt;&lt;aired&gt;\3&lt;/aired&gt;&lt;/episode&gt;" dest="8">
  952.         <expression clear="yes" repeat="yes">(?i)&lt;episode\s+id=&quot;(\d+)&quot;[^&gt;]*&gt;\s*&lt;epno\s+type=&quot;1&quot;&gt;(\d+)&lt;/epno&gt;\s*(?:&lt;length&gt;[^&lt;]*&lt;/length&gt;\s*)?(?:&lt;airdate&gt;([^&lt;]+)&lt;/airdate&gt;\s*)?(?:&lt;rating[^&gt;]*&gt;[^&lt;]*&lt;/rating&gt;\s*)?(?:&lt;title[^&gt;]*&gt;[^&lt;]*&lt;/title&gt;\s*)*?&lt;title xml:lang=&quot;en&quot;&gt;([^&lt;]+)&lt;/title&gt;.*?&lt;/episode&gt;</expression>
  953.       </RegExp>
  954.       <RegExp input="$$7" output="&lt;episode&gt;&lt;title&gt;\4&lt;/title&gt;&lt;url cache=&quot;$$20.xml&quot;&gt;\1&lt;/url&gt;&lt;epnum&gt;\2&lt;/epnum&gt;&lt;season&gt;0&lt;/season&gt;&lt;id&gt;\1&lt;/id&gt;&lt;aired&gt;\3&lt;/aired&gt;&lt;/episode&gt;" dest="8+">
  955.         <expression repeat="yes">(?i)&lt;episode\s+id=&quot;(\d+)&quot;[^&gt;]*&gt;\s*&lt;epno\s+type=&quot;2&quot;&gt;s(\d+)&lt;/epno&gt;\s*(?:&lt;length&gt;[^&lt;]*&lt;/length&gt;\s*)?(?:&lt;airdate&gt;([^&lt;]+)&lt;/airdate&gt;\s*)?(?:&lt;rating[^&gt;]*&gt;[^&lt;]*&lt;/rating&gt;\s*)?(?:&lt;title[^&gt;]*&gt;[^&lt;]*&lt;/title&gt;\s*)*?&lt;title xml:lang=&quot;en&quot;&gt;([^&lt;]+)&lt;/title&gt;.*?&lt;/episode&gt;</expression>
  956.       </RegExp>
  957.       <expression noclean="1"/>
  958.     </RegExp>
  959.   </GetEpisodeList>
  960.  
  961.   <GetEpisodeDetails clearbuffers="no" dest="4">
  962.     <RegExp input="$$4" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
  963.       <RegExp input="$$1" output="\1" dest="5">
  964.         <expression clear="yes" noclean="1">(?i)(&lt;episode id=&quot;$$3&quot;.*?&lt;/episode&gt;)</expression>
  965.       </RegExp>
  966.       <RegExp input="$$3" output="&lt;code&gt;\1&lt;/code&gt;" dest="4">
  967.         <expression clear="yes"/>
  968.       </RegExp>
  969.       <RegExp input="$$7" output="&lt;title&gt;\1&lt;/title&gt;" dest="4+">
  970.         <RegExp input="$$5" output="\1" dest="6">
  971.           <expression clear="yes">(?i)&lt;title xml:lang=&quot;en&quot;[^&gt;]*&gt;([^&lt;]+)&lt;/title&gt;</expression>
  972.         </RegExp>
  973.         <RegExp input="$$6" output="'\1" dest="7">
  974.           <expression clear="yes" repeat="yes">`?([^`]+)</expression>
  975.         </RegExp>
  976.         <expression>'(.*)</expression>
  977.       </RegExp>
  978.       <RegExp input="$$5" output="1-\1" dest="9">
  979.         <expression clear="yes">(?i)&lt;epno[^&gt;]*&gt;(\d+)&lt;/epno&gt;</expression>
  980.       </RegExp>
  981.       <RegExp input="$$5" output="0-\1" dest="9">
  982.         <expression>(?i)&lt;epno[^&gt;]*&gt;s(\d+)&lt;/epno&gt;</expression>
  983.       </RegExp>
  984.       <RegExp input="$$9" output="\1" dest="19">
  985.         <expression clear="yes">(\d+)-\d+</expression>
  986.       </RegExp>
  987.       <RegExp input="$$9" output="\1" dest="18">
  988.         <expression clear="yes">\d+-(\d+)</expression>
  989.       </RegExp>
  990.       <RegExp input="$$19" output="&lt;season&gt;$$19&lt;/season&gt;&lt;episode&gt;$$18&lt;/episode&gt;" dest="4+">
  991.         <expression/>
  992.       </RegExp>
  993.       <RegExp conditional="SpecialsAtEnd" input="$$19" output="&lt;displayseason&gt;2&lt;/displayseason&gt;&lt;displayepisode&gt;$$18&lt;/displayepisode&gt;" dest="4+">
  994.         <expression>0</expression>
  995.       </RegExp>
  996.       <RegExp conditional="!SpecialsAtEnd" input="$$19" output="&lt;displayseason&gt;0&lt;/displayseason&gt;&lt;displayepisode&gt;$$18&lt;/displayepisode&gt;" dest="4+">
  997.         <expression>0</expression>
  998.       </RegExp>
  999.       <RegExp input="$$5" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="4+">
  1000.         <expression>(?i)&lt;length&gt;(\d+)&lt;/length&gt;</expression>
  1001.       </RegExp>
  1002.       <RegExp input="$$5" output="&lt;votes&gt;\1&lt;/votes&gt;&lt;rating&gt;\2&lt;/rating&gt;" dest="4+">
  1003.         <expression>(?i)&lt;rating.+?votes=&quot;([^&quot;]*)&quot;[^&gt;]*&gt;([^&lt;]+)&lt;/rating&gt;</expression>
  1004.       </RegExp>
  1005.       <RegExp input="$$5" output="&lt;aired&gt;\1&lt;/aired&gt;" dest="4+">
  1006.         <expression>(?i)&lt;airdate[^&gt;]*&gt;([^&lt;]+)&lt;/airdate&gt;</expression>
  1007.       </RegExp>
  1008.       <RegExp input="$$1" output="\1" dest="6">
  1009.         <expression clear="yes" noclean="1">(?i)&lt;characters&gt;(.*?)&lt;/characters&gt;</expression>
  1010.       </RegExp>
  1011.       <RegExp input="$$6" output="&lt;actor&gt;&lt;name&gt;\5&lt;/name&gt;&lt;role&gt;\2&lt;/role&gt;&lt;/actor&gt;" dest="7">
  1012.         <expression clear="yes" repeat="yes">(?i)&lt;character[^&gt;]*type=&quot;main character in&quot;[^&gt;]*&gt;\s*(?:&lt;([^&gt;\s]+)[^&gt;]*&gt;[^&lt;]*&lt;/\1&gt;\s*)*?&lt;name&gt;([^&lt;]*)&lt;/name&gt;\s*(?:&lt;([^&gt;\s]+)[^&gt;]*&gt;[^&lt;]*&lt;/\3&gt;\s*)*?&lt;episodes[^&lt;]*[&gt;,]$$3[&lt;,][^/]*/episodes&gt;\s*(?:&lt;([^&gt;\s]+)[^&gt;]*&gt;[^&lt;]*&lt;/\4&gt;\s*)*?&lt;seiyuu[^&gt;]*&gt;([^&lt;]*)&lt;/seiyuu&gt;\s*(?:&lt;([^&gt;\s]+)[^&gt;]*&gt;[^&lt;]*&lt;/\6&gt;\s*)*?&lt;/character&gt;</expression>
  1013.       </RegExp>
  1014.       <RegExp conditional="!OnlyMainCast" input="$$6" output="&lt;actor&gt;&lt;name&gt;\5&lt;/name&gt;&lt;role&gt;\2&lt;/role&gt;&lt;/actor&gt;" dest="7+">
  1015.         <expression repeat="yes">(?i)&lt;character[^&gt;]*type=&quot;secondary cast in&quot;[^&gt;]*&gt;\s*(?:&lt;([^&gt;\s]+)[^&gt;]*&gt;[^&lt;]*&lt;/\1&gt;\s*)*?&lt;name&gt;([^&lt;]*)&lt;/name&gt;\s*(?:&lt;([^&gt;\s]+)[^&gt;]*&gt;[^&lt;]*&lt;/\3&gt;\s*)*?&lt;episodes[^&lt;]*[&gt;,]$$3[&lt;,][^/]*/episodes&gt;\s*(?:&lt;([^&gt;\s]+)[^&gt;]*&gt;[^&lt;]*&lt;/\4&gt;\s*)*?&lt;seiyuu[^&gt;]*&gt;([^&lt;]*)&lt;/seiyuu&gt;\s*(?:&lt;([^&gt;\s]+)[^&gt;]*&gt;[^&lt;]*&lt;/\6&gt;\s*)*?&lt;/character&gt;</expression>
  1016.       </RegExp>
  1017.       <RegExp input="$$7" output="\1" dest="4+">
  1018.         <RegExp input="$$7" output="'\1" dest="7">
  1019.           <expression clear="yes" repeat="yes" noclean="1">`?([^`]+)</expression>
  1020.         </RegExp>
  1021.         <expression noclean="1">'(.*)</expression>
  1022.       </RegExp>
  1023.       <RegExp input="$$1" output="\1" dest="6">
  1024.         <expression clear="yes" noclean="1">(?i)&lt;creators&gt;(.*?)&lt;/creators&gt;</expression>
  1025.       </RegExp>
  1026.       <RegExp input="$$6" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="4+">
  1027.         <expression repeat="yes">(?i)&lt;name.*?type=&quot;(?:Original|Character)[^&gt;]*&gt;([^&lt;]*)&lt;/name&gt;</expression>
  1028.       </RegExp>
  1029.       <RegExp input="$$6" output="&lt;director&gt;\1&lt;/director&gt;" dest="4+">
  1030.         <expression repeat="yes">(?i)&lt;name.*?type=&quot;Direction&quot;&gt;([^&lt;]*)&lt;/name&gt;</expression>
  1031.       </RegExp>
  1032.       <RegExp input="$$1" output="\1" dest="20">
  1033.         <expression clear="yes">(?i)&lt;anime id=&quot;(\d+)&quot;</expression>
  1034.       </RegExp>
  1035.       <RegExp conditional="PersonalAnimeMapping" input="" output="&lt;url function=&quot;GetPersonalAnimeMapping&quot; cache=&quot;pers-anime-list.xml&quot;&gt;$INFO[PersonalAnimeMappingUrl]&lt;/url&gt;" dest="4+">
  1036.         <expression/>
  1037.       </RegExp>
  1038.       <RegExp input="" output="&lt;url function=&quot;GetEpisodeMappingXMLAPI&quot; cache=&quot;anime-list.xml&quot;&gt;$INFO[AnimeMappingUrl]&lt;/url&gt;" dest="4+">
  1039.         <expression/>
  1040.       </RegExp>
  1041.       <RegExp input="" output="" dest="1">
  1042.         <expression clear="yes"/>
  1043.       </RegExp>
  1044.       <RegExp input="" output="" dest="2">
  1045.         <expression clear="yes"/>
  1046.       </RegExp>
  1047.       <expression noclean="1"/>
  1048.     </RegExp>  
  1049.   </GetEpisodeDetails>
  1050.  
  1051.   <!--
  1052.    Persistent variables:
  1053.    $$20 ... AniDB anime id
  1054.    $$19 ... AniDB season number
  1055.    $$18 ... AniDB episode number
  1056.    $$17 ... TheTvDb anime id
  1057.    $$16 ... TheTvDb season number
  1058.    $$15 ... TheTvDb episode number
  1059.    $$14 ... Explicit sort order from mapping (true/false)
  1060.    $$13 ... TheTvDb secondary episode number
  1061.  -->
  1062.  
  1063.   <GetEpisodeMappingXMLAPI clearbuffers="no" dest="4">
  1064.     <RegExp input="$$4" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
  1065.       <RegExp input="$$2$$1" output="\1" dest="6">
  1066.         <expression clear="yes" noclean="1">(?i)(&lt;anime\s+anidbid=&quot;$$20&quot;.*?&lt;/anime&gt;)</expression>
  1067.       </RegExp>
  1068.       <RegExp input="$$6" output="\1" dest="7">
  1069.         <expression clear="yes" noclean="1">(?i)(&lt;supplemental-episode-info\s+episode=&quot;$$18&quot;\s*&gt;.*?&lt;/supplemental-episode-info&gt;)</expression>
  1070.       </RegExp>
  1071.       <RegExp input="$$7" output="\1" dest="4">
  1072.         <expression clear="yes" repeat="yes" noclean="1">(?i)(&lt;(title|runtime|aired|credits|director|plot|thumb)[^&gt;]*&gt;.*?&lt;/\2&gt;)</expression>
  1073.       </RegExp>
  1074.       <RegExp input="$$6" output="\1" dest="7">
  1075.         <expression clear="yes" noclean="1">(?i)(&lt;supplemental-episode-info\s+episode=&quot;all&quot;\s*&gt;.*?&lt;/supplemental-episode-info&gt;)</expression>
  1076.       </RegExp>
  1077.       <RegExp input="$$7" output="\1" dest="4+">
  1078.         <expression repeat="yes" noclean="1">(?i)(&lt;(title|runtime|aired|credits|director|plot|thumb)[^&gt;]*&gt;.*?&lt;/\2&gt;)</expression>
  1079.       </RegExp>
  1080.       <RegExp conditional="ExtraDetails" input="$$17" output="&lt;url function=&quot;GetEpisodeExtraDetailsDataAPI&quot; cache=&quot;tvdb-$$20.xml&quot;&gt;http://www.thetvdb.com/api/1D62F2F90030C444/series/\1/all/en.zip&lt;/url&gt;" dest="4+">
  1081.         <RegExp input="$$6" output="\1" dest="17">
  1082.           <expression clear="yes">(?i)tvdbid=&quot;([^&quot;]*)&quot;</expression>
  1083.         </RegExp>
  1084.         <RegExp input="$$6" output="\1" dest="16">
  1085.           <expression clear="yes">(?i)defaulttvdbseason=&quot;(\d+)&quot;</expression>
  1086.         </RegExp>
  1087.         <RegExp input="~$$19~" output="\1" dest="16">
  1088.           <expression>~(0)~</expression>
  1089.         </RegExp>
  1090.         <RegExp input="$$6" output="\1" dest="16">
  1091.           <expression>(?i)&lt;mapping\s+anidbseason=&quot;$$19&quot;\s+tvdbseason=&quot;(\d+)&quot;\s*&gt;[^&lt;]*;$$18-\d+(?:\+\d+)?;[^&lt;]*&lt;/mapping&gt;</expression>
  1092.         </RegExp>
  1093.         <RegExp input="$$18" output="\1" dest="15">
  1094.           <expression clear="yes">(\d+)</expression>
  1095.         </RegExp>
  1096.         <RegExp input="$$6" output="\1" dest="15">
  1097.           <expression>(?i)&lt;mapping\s+anidbseason=&quot;$$19&quot;\s+tvdbseason=&quot;\d+&quot;\s*&gt;[^&lt;]*;$$18-(\d+)(?:\+\d+)?;[^&lt;]*&lt;/mapping&gt;</expression>
  1098.         </RegExp>
  1099.         <RegExp input="$$6" output="\1" dest="13">
  1100.           <expression clear="yes">(?i)&lt;mapping\s+anidbseason=&quot;$$19&quot;\s+tvdbseason=&quot;\d+&quot;\s*&gt;[^&lt;]*;$$18-\d+\+(\d+);[^&lt;]*&lt;/mapping&gt;</expression>
  1101.         </RegExp>
  1102.         <expression>(\d+)</expression>
  1103.       </RegExp>
  1104.       <RegExp input="false" output="\1" dest="14">
  1105.         <expression/>
  1106.       </RegExp>
  1107.       <RegExp conditional="SpecialsInside" input="$$8" output="&lt;displayseason&gt;1&lt;/displayseason&gt;&lt;displayepisode&gt;\1&lt;/displayepisode&gt;" dest="4+">
  1108.         <RegExp input="$$6" output="\1" dest="7">
  1109.           <expression clear="yes" noclean="1">(?i)(&lt;before&gt;.*?&lt;/before&gt;)</expression>
  1110.         </RegExp>
  1111.         <RegExp input="$$19-$$7" output="\1" dest="8">
  1112.           <expression clear="yes">(?i)0-&lt;before&gt;[^&lt;]*;$$18-(\d+);[^&lt;]*&lt;/before&gt;</expression>
  1113.         </RegExp>
  1114.         <RegExp input="$$8" output="true" dest="14">
  1115.           <expression>\d+</expression>
  1116.         </RegExp>
  1117.         <expression>(\d+)</expression>
  1118.       </RegExp>
  1119.       <RegExp input="" output="" dest="1">
  1120.         <expression clear="yes"/>
  1121.       </RegExp>
  1122.       <expression noclean="1"/>
  1123.     </RegExp>
  1124.   </GetEpisodeMappingXMLAPI>
  1125.  
  1126.   <GetEpisodeReverseMappingXMLAPI clearbuffers="no" dest="4">
  1127.     <RegExp input="$$4" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
  1128.       <RegExp input="$$2$$1" output="\1" dest="6">
  1129.         <expression clear="yes" noclean="1">(?i)(&lt;anime\s+anidbid=&quot;$$20&quot;.*?&lt;/anime&gt;)</expression>
  1130.       </RegExp>
  1131.       <RegExp input="$$6" output="1" dest="19">
  1132.         <expression clear="yes">(?i)defaulttvdbseason=&quot;$$16&quot;</expression>
  1133.       </RegExp>
  1134.       <RegExp input="$$6" output="\1" dest="19">
  1135.         <expression>(?i)&lt;mapping\s+anidbseason=&quot;(\d+)&quot;\s+tvdbseason=&quot;$$16&quot;\s*&gt;[^&lt;]*;\d+-$$15(?:\+\d+)?;[^&lt;]*&lt;/mapping&gt;</expression>
  1136.       </RegExp>
  1137.       <RegExp input="$$15" output="\1" dest="18">
  1138.         <expression clear="yes">(\d+)</expression>
  1139.       </RegExp>
  1140.       <RegExp input="$$6" output="\1" dest="18">
  1141.         <expression>(?i)&lt;mapping\s+anidbseason=&quot;\d+&quot;\s+tvdbseason=&quot;$$16&quot;\s*&gt;[^&lt;]*;(\d+)-$$15(?:\+\d+)?;[^&lt;]*&lt;/mapping&gt;</expression>
  1142.       </RegExp>
  1143.       <RegExp input="$$19-$$18" output="&lt;displayseason&gt;1&lt;/displayseason&gt;&lt;displayepisode&gt;\1&lt;/displayepisode&gt;" dest="4">
  1144.         <expression clear="yes">1-(\d+)</expression>
  1145.       </RegExp>
  1146.       <RegExp input="" output="" dest="1">
  1147.         <expression clear="yes"/>
  1148.       </RegExp>
  1149.       <expression noclean="1"/>  
  1150.     </RegExp>
  1151.   </GetEpisodeReverseMappingXMLAPI>
  1152.  
  1153.   <GetEpisodeExtraDetailsDataAPI clearbuffers="no" dest="4">
  1154.     <RegExp input="$$4" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
  1155.       <RegExp input="$$1" output="\1" dest="5">
  1156.         <expression clear="yes" noclean="1">(?i)(&lt;episode&gt;\s*(?:&lt;([^&gt;]+)&gt;[^&lt;]*&lt;/\2&gt;\s*)*?&lt;episodename&gt;[^&lt;]+&lt;/episodename&gt;\s*(?:&lt;([^&gt;]+)&gt;[^&lt;]*&lt;/\3&gt;\s*)*?&lt;episodenumber&gt;$$15&lt;/episodenumber&gt;\s*(?:&lt;([^&gt;]+)&gt;[^&lt;]*&lt;/\4&gt;\s*)*?&lt;seasonnumber&gt;$$16&lt;/seasonnumber&gt;\s*(?:&lt;([^&gt;]+)&gt;[^&lt;]*&lt;/\5&gt;\s*)*?&lt;/episode&gt;)</expression>
  1157.       </RegExp>
  1158.       <RegExp input="$$1" output="\1" dest="6">
  1159.         <expression clear="yes" noclean="1">(?i)(&lt;episode&gt;\s*(?:&lt;([^&gt;]+)&gt;[^&lt;]*&lt;/\2&gt;\s*)*?&lt;episodename&gt;[^&lt;]+&lt;/episodename&gt;\s*(?:&lt;([^&gt;]+)&gt;[^&lt;]*&lt;/\3&gt;\s*)*?&lt;episodenumber&gt;$$13&lt;/episodenumber&gt;\s*(?:&lt;([^&gt;]+)&gt;[^&lt;]*&lt;/\4&gt;\s*)*?&lt;seasonnumber&gt;$$16&lt;/seasonnumber&gt;\s*(?:&lt;([^&gt;]+)&gt;[^&lt;]*&lt;/\5&gt;\s*)*?&lt;/episode&gt;)</expression>
  1160.       </RegExp>
  1161.       <RegExp input="$$5" output="&lt;thumb&gt;http://www.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="4">
  1162.         <expression clear="yes">(?i)&lt;filename&gt;([^&lt;]+)&lt;/filename&gt;</expression>
  1163.       </RegExp>
  1164.       <RegExp input="$$13-$$6" output="&lt;thumb&gt;http://www.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="4+">
  1165.         <expression>(?i)\d+-.*?&lt;filename&gt;([^&lt;]+)&lt;/filename&gt;</expression>
  1166.       </RegExp>
  1167.       <RegExp input="$$5" output="\1" dest="7">
  1168.         <expression clear="yes">(?i)&lt;overview&gt;([^&lt;]+)&lt;/overview&gt;</expression>
  1169.       </RegExp>
  1170.       <RegExp input="$$13-$$6" output="\n\n\1" dest="7+">
  1171.         <expression>(?i)\d+-.*?&lt;overview&gt;([^&lt;]+)&lt;/overview&gt;</expression>
  1172.       </RegExp>
  1173.       <RegExp input="$$7" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="4+">
  1174.         <expression>(.+)</expression>
  1175.       </RegExp>
  1176.       <RegExp conditional="SpecialsInside" input="$$6" output="\1" dest="4+">
  1177.         <RegExp input="$$5" output="\1" dest="16">
  1178.           <expression clear="yes">(?i)&lt;airsbefore_season&gt;(\d+)&lt;/airsbefore_season&gt;</expression>
  1179.         </RegExp>
  1180.         <RegExp input="$$5" output="\1" dest="15">
  1181.           <expression clear="yes">(?i)&lt;airsbefore_episode&gt;(\d+)&lt;/airsbefore_episode&gt;</expression>
  1182.         </RegExp>
  1183.         <RegExp input="" output="" dest="6">
  1184.           <expression clear="yes"/>
  1185.         </RegExp>
  1186.         <RegExp conditional="PersonalAnimeMapping" input="$$14-$$19-$$15-$$16" output="&lt;url function=&quot;GetPersonalAnimeMapping&quot; cache=&quot;pers-anime-list.xml&quot;&gt;$INFO[PersonalAnimeMappingUrl]&lt;/url&gt;" dest="6+">
  1187.           <expression>false-0-\d+-\d+</expression>
  1188.         </RegExp>
  1189.         <RegExp input="$$14-$$19-$$15-$$16" output="&lt;url function=&quot;GetEpisodeReverseMappingXMLAPI&quot; cache=&quot;anime-list.xml&quot;&gt;$INFO[AnimeMappingUrl]&lt;/url&gt;" dest="6+">
  1190.           <expression>false-0-\d+-\d+</expression>
  1191.         </RegExp>
  1192.         <expression noclean="1"/>  
  1193.       </RegExp>
  1194.       <RegExp input="" output="" dest="1">
  1195.         <expression clear="yes"/>
  1196.       </RegExp>
  1197.       <RegExp input="" output="" dest="2">
  1198.         <expression clear="yes"/>
  1199.       </RegExp>
  1200.       <expression noclean="1"/>  
  1201.     </RegExp>
  1202.   </GetEpisodeExtraDetailsDataAPI>
  1203.  
  1204. </scraper>
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