Regenerating XML... Again

Announcements about the database, website, and plugins.
szsori
Site Admin
Posts: 1971
Joined: Fri Nov 03, 2006 5:23 pm

Re: Regenerating XML... Again

Postby szsori » Thu Nov 19, 2009 11:27 am

morphiousonline wrote:
szsori wrote:Do you have the latest scraper for XBMC? The one in their stable release is outdated... it lists images.thetvdb.com. It should list http://www.thetvdb.com instead. There are threads here and on the XBMC forums about it.


the scraper i've got in XMBC was working perfectly last week, automatically downloading banners and episode thumbnails. But since the down time it only receives the plot and nameing information, no images and non of the wide banner images are available when trying to manually select them.


Copy and paste the contents of the scraper here. I'm reasonably certain things are working properly on our end. You could also check the XBMC forums.

Havrest
Former Moderator
Posts: 79
Joined: Sun Nov 08, 2009 2:12 pm
Location: France

Re: Regenerating XML... Again

Postby Havrest » Thu Nov 19, 2009 11:31 am

No problem here with episode images scrapping and xbmc (camelot (9.11) alpha 2, mac snow leopard)

psouza4
Posts: 55
Joined: Thu Sep 17, 2009 6:53 am
Location: Boise, ID, USA
Contact:

Re: Regenerating XML... Again

Postby psouza4 » Thu Nov 19, 2009 2:01 pm

No problem here using my current API and source code for Media Center Master. Getting metadata and images just fine.
Peter Souza IV
Media Center Master (MCM)
A free metadata and media organization solution for Windows Media Center.
Including support for MediaBrowser, XBMC, Boxee, Netgear NeoTV, pyTiVo and more!

morphiousonline
Posts: 4
Joined: Thu Nov 19, 2009 4:22 am

Re: Regenerating XML... Again

Postby morphiousonline » Thu Nov 19, 2009 6:22 pm

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!-- should be self-explanatory -->
<scraper name="TheTVDB.com" content="tvshows" thumb="tvdb.png" language="multi">
   <GetSettings dest="3">
      <RegExp input="$$5" output="&lt;settings&gt;\1&lt;/settings&gt;" dest="3">
         <RegExp input="$$1" output="&lt;url function=&quot;GetLanguages&quot;&gt;http://www.thetvdb.com/api/1D62F2F90030C444/languages.xml&lt;/url&gt;" dest="5">
            <expression></expression>
         </RegExp>
         <RegExp input="$$1" output="&lt;setting label=&quot;Use DVD Order&quot; type=&quot;bool&quot; id=&quot;dvdorder&quot; default=&quot;false&quot; enable=&quot;!eq(1,true)&quot;&gt;&lt;/setting&gt;" dest="5+">
            <expression></expression>
         </RegExp>
         <!-- Absolute ordering is great for Animes it actually trick XBMC by telling it that the serie has only one season and uses the 'absolute_number' as episodes numbers -->
         <RegExp input="$$1" output="&lt;setting label=&quot;Use Absolute Ordering (Single Season)&quot; type=&quot;bool&quot; id=&quot;absolutenumber&quot; default=&quot;false&quot; enable=&quot;!eq(-1,true)&quot;&gt;&lt;/setting&gt;" dest="5+">
            <expression></expression>
         </RegExp>
         <RegExp input="$$1" output="&lt;setting type=&quot;sep&quot;&gt;&lt;/setting&gt;" dest="5+">
            <expression></expression>
         </RegExp>
         <RegExp input="$$1" output="&lt;setting label=&quot;Enable Fanart&quot; type=&quot;bool&quot; id=&quot;fanart&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
            <expression></expression>
         </RegExp>
         <RegExp input="$$1" output="&lt;setting label=&quot;Prefer Posters&quot; type=&quot;bool&quot; id=&quot;posters&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
            <expression></expression>
         </RegExp>
         <RegExp input="$$1" output="&lt;setting type=&quot;sep&quot;&gt;&lt;/setting&gt;" dest="5+">
            <expression></expression>
         </RegExp>
         <RegExp input="$$1" output="&lt;setting label=&quot;Language Override for Banners&quot; type=&quot;bool&quot; id=&quot;override&quot; default=&quot;false&quot;&gt;&lt;/setting&gt;" dest="5+">
            <expression></expression>
         </RegExp>
         <expression noclean="1"></expression>
      </RegExp>
   </GetSettings>
   
   <NfoUrl dest="3">
      <RegExp input="$$1" output="&lt;url cache=&quot;\1.xml&quot;&gt;http://www.thetvdb.com/api/1D62F2F90030C444/series/\1/all/en.zip&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;" dest="3">
         <expression>http://(?:www\.)?thetvdb.com/(?:index\.php)?\?tab=series&amp;id=([0-9]+)</expression>
      </RegExp>
   </NfoUrl>
   <EpisodeGuideUrl dest="3">
      <RegExp input="$$1" output="\1" dest="3">
         <expression>(.*?http://www.thetvdb.com.*)</expression>
      </RegExp>
      <RegExp input="$$1" output="\1" dest="3">
         <expression>(.*?http://thetvdb.com.*)</expression>
      </RegExp>
   </EpisodeGuideUrl>

   <!--    input:       $1=query string -->
   <!--    returns:    the url we should use to do the search -->
   <CreateSearchUrl dest="3">
      <RegExp input="$$1" output="http://www.thetvdb.com/api/GetSeries.php?seriesname=\1$$4&amp;language=$INFO[language]" dest="3">
         <RegExp input="$$2" output="%20(\1)" dest="4">
            <expression clear="yes">(.+)</expression>
         </RegExp>
         <expression></expression>
      </RegExp>
   </CreateSearchUrl>

   <!--    input: $1=html $2=search query -->
   <!--    returns: results in xml format <results><movie><title>*</title><url>*</url>*#urls<extra>*</extra></movie>*</results> -->
   <GetSearchResults dest="1">
      <RegExp output="\1" dest="3">
         <expression noclean="1">&lt;Data&gt;(.*)&lt;/Data&gt;</expression>
      </RegExp>
      <RegExp input="$$4" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&gt;&lt;results&gt;\1&lt;/results&gt;" dest="1">
         <RegExp input="$$3" output="&lt;entity&gt;&lt;title&gt;\3&lt;/title&gt;&lt;language&gt;\2&lt;/language&gt;&lt;url cache=&quot;\1.xml&quot;&gt;http://www.thetvdb.com/api/1D62F2F90030C444/series/\1/all/\2.zip&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="4">
            <expression repeat="yes">&lt;seriesid&gt;([0-9]*)&lt;/seriesid&gt;[^&lt;]*&lt;language&gt;([^&lt;]*)&lt;/language&gt;[^&lt;]*&lt;SeriesName&gt;([^&lt;]*)&lt;/SeriesName&gt;</expression>
         </RegExp>
         <expression noclean="1"></expression>
      </RegExp>
   </GetSearchResults>

   <!--    input: $1..#urls=html -->
   <!--   input: $(#urls+1): extra !-->
   <!--    returns: results in xml format <details><plot>*</plot><director>*</director><premiered>*</premiered><episodeguide>*</episodeguide></details> -->
   <GetDetails dest="7">
      <RegExp input="$$4" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;\1&lt;/details&gt;" dest="7">
         <RegExp input="$$1" output="\1" dest="5">
            <expression noclean="1">&lt;Series&gt;.*?&lt;id&gt;$$2&lt;/id&gt;(.*)</expression>
         </RegExp>
         <RegExp input="$$5" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="4">
            <expression noclean="1">&lt;Overview&gt;([^&lt;]*)&lt;/Overview&gt;</expression>
         </RegExp>
         <RegExp input="$$2" output="&lt;id&gt;\1&lt;/id&gt;" dest="4+">
            <expression/>
         </RegExp>
         <RegExp input="$$1" output="&lt;mpaa&gt;\1&lt;/mpaa&gt;" dest="4+">
            <expression>&lt;ContentRating&gt;([^&lt;]*)&lt;/ContentRating&gt;</expression>
         </RegExp>
         <RegExp input="$$5" output="&lt;premiered&gt;\1&lt;/premiered&gt;" dest="4+">
            <expression>&lt;FirstAired&gt;([^&lt;]*)&lt;/FirstAired&gt;</expression>
         </RegExp>
         <RegExp input="$$5" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="4+">
            <expression>&lt;Rating&gt;([^&lt;]*)&lt;/Rating&gt;</expression>
         </RegExp>
         <RegExp input="$$5" output="&lt;title&gt;\1&lt;/title&gt;" dest="4+">
            <expression>&lt;SeriesName&gt;([^&lt;]*)&lt;/SeriesName&gt;</expression>
         </RegExp>
         <RegExp input="$$5" output="\1" dest="10">
            <expression noclean="1">&lt;Genre&gt;([^&lt;]*)&lt;/Genre&gt;</expression>
         </RegExp>
         <RegExp input="$$10" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="4+">
            <expression repeat="yes">([^\|]*)\|</expression>
         </RegExp>
         <RegExp input="$$10" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="4+">
            <expression repeat="yes">([^,]*),</expression>
         </RegExp>
         <RegExp input="$$10" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="4+">
            <expression>([^\|,]+)$</expression>
         </RegExp>
<!-- actors with thumbs -->
                        <RegExp input="$$5" output="&lt;actor&gt;&lt;name&gt;\2&lt;/name&gt;&lt;role&gt;\3&lt;/role&gt;&lt;thumb&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;&lt;/actor&gt;" dest="4+">
            <expression repeat="yes" noclean="1,2,3">&lt;Actor&gt;.*?&lt;Image&gt;([^&lt;]+)&lt;/Image&gt;.*?&lt;Name&gt;([^&lt;]*)&lt;/Name&gt;.*?&lt;Role&gt;([^&lt;]*)</expression>
                        </RegExp>
<!-- actors without thumbs -->
                        <RegExp input="$$5" output="&lt;actor&gt;&lt;name&gt;\2&lt;/name&gt;&lt;role&gt;\3&lt;/role&gt;&lt;/actor&gt;" dest="4+">
            <expression repeat="yes" noclean="1,2,3">&lt;Actor&gt;.*?&lt;Image&gt;([^&lt;]*)&lt;/Image&gt;.*?&lt;Name&gt;([^&lt;]*)&lt;/Name&gt;.*?&lt;Role&gt;([^&lt;]*)</expression>
                        </RegExp>
         <RegExp input="$$6" output="&lt;thumbs&gt;\1&lt;/thumbs&gt;" dest="4+">
            <RegExp conditional="posters" output="&lt;thumb&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6+">
               <expression repeat="yes">&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;poster&lt;/BannerType&gt;</expression>
            </RegExp>
            <RegExp conditional="!override" input="$$5" output="&lt;thumb&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6+">
               <expression repeat="yes">&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;series&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;graphical&lt;/BannerType2&gt;[^&lt;]*&lt;Language&gt;$INFO[language]&lt;/Language&gt;</expression>
            </RegExp>
            <RegExp conditional="override" input="$$5" output="&lt;thumb&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6+">
               <expression repeat="yes">&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;series&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;graphical&lt;/BannerType2&gt;[^&lt;]*&lt;Language&gt;[a-z]*&lt;/Language&gt;</expression>
            </RegExp>
            <RegExp conditional="!override" input="$$5" output="&lt;thumb&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6+">
               <expression repeat="yes">&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;series&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;text&lt;/BannerType2&gt;[^&lt;]*&lt;Language&gt;$INFO[language]&lt;/Language&gt;</expression>
            </RegExp>
            <RegExp conditional="override" input="$$5" output="&lt;thumb&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6+">
               <expression repeat="yes">&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;series&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;text&lt;/BannerType2&gt;[^&lt;]*&lt;Language&gt;[a-z]*&lt;/Language&gt;</expression>
            </RegExp>
            <RegExp input="$$5" output="&lt;thumb&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6+">
               <expression repeat="yes">&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;series&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;blank&lt;/BannerType2&gt;[^&lt;]*&lt;Language&gt;&lt;/Language&gt;</expression>
            </RegExp>
            <RegExp conditional="!override" input="$$5" output="&lt;thumb type=&quot;season&quot; season=&quot;\2&quot;&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6+">
               <expression repeat="yes">&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;season&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;season&lt;/BannerType2&gt;[^&lt;]*&lt;Language&gt;$INFO[language]&lt;/Language&gt;[^&lt;]*&lt;Season&gt;([0-9]+)&lt;/Season&gt;</expression>
            </RegExp>
            <RegExp conditional="override" input="$$5" output="&lt;thumb type=&quot;season&quot; season=&quot;\2&quot;&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6+">
               <expression repeat="yes">&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;season&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;season&lt;/BannerType2&gt;[^&lt;]*&lt;Language&gt;[a-z]*&lt;/Language&gt;[^&lt;]*&lt;Season&gt;([0-9]+)&lt;/Season&gt;</expression>
            </RegExp>
            <RegExp conditional="!override" input="$$5" output="&lt;thumb type=&quot;season&quot; season=&quot;\2&quot;&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6+">
               <expression repeat="yes">&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;season&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;seasonwide&lt;/BannerType2&gt;[^&lt;]*&lt;Language&gt;$INFO[language]&lt;/Language&gt;[^&lt;]*&lt;Season&gt;([0-9]+)&lt;/Season&gt;</expression>
            </RegExp>
            <RegExp conditional="override" input="$$5" output="&lt;thumb type=&quot;season&quot; season=&quot;\2&quot;&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6+">
               <expression repeat="yes">&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;season&lt;/BannerType&gt;[^&lt;]*&lt;BannerType2&gt;seasonwide&lt;/BannerType2&gt;[^&lt;]*&lt;Language&gt;[a-z]*&lt;/Language&gt;[^&lt;]*&lt;Season&gt;([0-9]+)&lt;/Season&gt;</expression>
            </RegExp>
            <RegExp input="$$5" conditional="!posters" output="&lt;thumb&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6+">
               <expression repeat="yes">&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;poster&lt;/BannerType&gt;</expression>
            </RegExp>
            <RegExp input="$$5" output="&lt;thumb type=&quot;season&quot; season=&quot;-1&quot;&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="6+">
               <expression repeat="yes">&lt;BannerPath&gt;([^&lt;]*)&lt;/BannerPath&gt;[^&lt;]*&lt;BannerType&gt;poster&lt;/BannerType&gt;</expression>
            </RegExp>
            <expression noclean="1"></expression>
         </RegExp>
         <RegExp conditional="fanart" input="$$7" output="&lt;fanart url=&quot;http://images.thetvdb.com/banners/&quot;&gt;\1&lt;/fanart&gt;" dest="4+">
            <RegExp conditional="!override" input="$$5" output="&lt;thumb dim=&quot;\2&quot; colors=&quot;\3&quot; preview=&quot;_cache/\1&quot;&gt;\1&lt;/thumb&gt;" dest="7+">
               <expression repeat="yes">&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;[^&lt;]*&lt;Language&gt;$INFO[language]&lt;/Language&gt;</expression>
            </RegExp>
            <RegExp conditional="override" input="$$5" output="&lt;thumb dim=&quot;\2&quot; colors=&quot;\3&quot; preview=&quot;_cache/\1&quot;&gt;\1&lt;/thumb&gt;" dest="7+">
               <expression repeat="yes">&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;[^&lt;]*&lt;Language&gt;[a-z]*&lt;/Language&gt;</expression>
            </RegExp>
            <expression noclean="1"></expression>
         </RegExp>
         <RegExp input="$$2" output="&lt;episodeguide&gt;&lt;url cache=&quot;$$2.xml&quot;&gt;http://www.thetvdb.com/api/1D62F2F90030C444/series/\1/all/$INFO[language].zip&lt;/url&gt;&lt;/episodeguide&gt;" dest="4+">
            <expression></expression>
         </RegExp>
         <expression noclean="1"></expression>
      </RegExp>
   </GetDetails>

   <!--    input: $1=html  !-->
   <!--    input: $2=series url !-->
   <!--    returns: results in xml format <episodeguide><episode><title>*</title><url>*</url><season>*</season><epnum>*</epnum><thumb>*</thumb><id>*</id></episode>*</episodeguide> !-->
   <GetEpisodeList dest="3">
      <RegExp input="$$4" output="&lt;episodeguide&gt;\1&lt;/episodeguide&gt;" dest="3">
      <RegExp input="$$2" output="\1" dest="10">
         <expression>http://www.thetvdb.com/api/1D62F2F90030C444/series/([0-9]*)/all/$INFO[language].zip</expression>
      </RegExp>
      <!-- If Not Using "dvdorder" then check if the user wants to use "absolute ordering" -->
      <RegExp conditional="!dvdorder">
      
         <RegExp conditional="absolutenumber">
            <!-- If Using "absolute ordering" then scrape episodes and return them as Season 1 and Absolute_number as Episode number -->
            <RegExp input="$$1" output="&lt;episode&gt;&lt;title&gt;\2&lt;/title&gt;&lt;url cache=&quot;$$10.xml&quot;&gt;$$2&lt;/url&gt;&lt;epnum&gt;\3&lt;/epnum&gt;&lt;season&gt;1&lt;/season&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/episode&gt;" dest="4+">
               <expression repeat="yes">&lt;Episode&gt;.*?&lt;id&gt;([0-9]*)&lt;/id&gt;.*?&lt;EpisodeName&gt;([^&lt;]*)&lt;/EpisodeName&gt;.*?&lt;absolute_number&gt;([0-9]+)&lt;/absolute_number&gt;.*?&lt;/Episode&gt;</expression>
            </RegExp>
            <!-- If Using "absolute ordering" then scrape episodes without absolute_number with normal season/episode numbers to match Specials and other cases -->
            <RegExp input="$$1" output="&lt;episode&gt;&lt;title&gt;\2&lt;/title&gt;&lt;url cache=&quot;$$10.xml&quot;&gt;$$2&lt;/url&gt;&lt;epnum&gt;\3&lt;/epnum&gt;&lt;season&gt;\4&lt;/season&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/episode&gt;" dest="4+">
               <expression repeat="yes">&lt;Episode&gt;.*?&lt;id&gt;([0-9]+).*?&lt;EpisodeName&gt;([^&lt;]*).*?&lt;EpisodeNumber&gt;([0-9]+)[^&lt;]*.*?&lt;SeasonNumber&gt;(0)&lt;/SeasonNumber&gt;.*?&lt;absolute_number&gt;&lt;/absolute_number&gt;.*?&lt;/Episode&gt;</expression>
            </RegExp>
         </RegExp>
         
         <!-- If not "dvdordering" and not "absolute ordering" ... well use normal regexp ;) -->
         <RegExp conditional="!absolutenumber" input="$$1" output="&lt;episode&gt;&lt;title&gt;\2&lt;/title&gt;&lt;url cache=&quot;$$10.xml&quot;&gt;$$2&lt;/url&gt;&lt;epnum&gt;\3&lt;/epnum&gt;&lt;season&gt;\4&lt;/season&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/episode&gt;" dest="4">
            <expression repeat="yes">&lt;Episode&gt;.*?&lt;id&gt;([0-9]+).*?&lt;EpisodeName&gt;([^&lt;]*).*?&lt;EpisodeNumber&gt;([0-9]+)[^&lt;]*.*?&lt;SeasonNumber&gt;([0-9]+)[^&lt;]*.*?&lt;/Episode&gt;</expression>
         </RegExp>
      </RegExp>
      <!-- ... Or use "dvdordering" -->
      <RegExp conditional="dvdorder" input="$$1" output="&lt;episode&gt;&lt;title&gt;\4&lt;/title&gt;&lt;url cache=&quot;$$10.xml&quot;&gt;$$2&lt;/url&gt;&lt;epnum&gt;\2&lt;/epnum&gt;&lt;season&gt;\3&lt;/season&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/episode&gt;" dest="4">
          <expression repeat="yes">&lt;Episode&gt;.*?&lt;id&gt;([0-9]+).*?&lt;Combined_episodenumber&gt;([0-9]+).*?&lt;Combined_season&gt;([0-9]+).*?&lt;EpisodeName&gt;([^&lt;]*).*?&lt;/Episode&gt;</expression>
       </RegExp>
      <expression noclean="1"></expression>
      </RegExp>
   </GetEpisodeList>

   <!--    input: $1=html -->
   <!--    returns: results in xml format <details><writer>*</writer><director>*</director><cast>*</cast><rating>*</rating><rank>*</rank><plot>*</plot> -->
   <GetEpisodeDetails dest="3">
      <RegExp input="$$4" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;\1&lt;/details&gt;" dest="3">
         <RegExp input="$$1" output="\1" dest="8">
            <expression noclean="1">&lt;Episode&gt;.*?&lt;id&gt;$$2&lt;/id&gt;(.*?)&lt;/Episode&gt;</expression>
         </RegExp>
         <RegExp input="$$8" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="4">
            <expression>&lt;Overview&gt;([^&lt;]*)&lt;/Overview&gt;</expression>
         </RegExp>
         <RegExp input="$$8" output="\1" dest="6">
            <expression noclean="1">&lt;Writer&gt;([^&lt;]*)&lt;/Writer&gt;</expression>
         </RegExp>
         <RegExp input="$$6" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="4+">
            <expression repeat="yes">([^\|]*)\|</expression>
         </RegExp>
         <RegExp input="$$6" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="4+">
            <expression repeat="yes">([^,]*),</expression>
         </RegExp>
         <RegExp input="$$6" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="4+">
            <expression>([^\|,]+)$</expression>
         </RegExp>
         <RegExp input="$$8" output="\1" dest="6">
            <expression noclean="1">&lt;Director&gt;([^&lt;]*)&lt;/Director&gt;</expression>
         </RegExp>
         <RegExp input="$$6" output="&lt;director&gt;\1&lt;/director&gt;" dest="4+">
            <expression repeat="yes">([^\|]*)\|</expression>
         </RegExp>
         <RegExp input="$$6" output="&lt;director&gt;\1&lt;/director&gt;" dest="4+">
            <expression repeat="yes">([^,]*),</expression>
         </RegExp>
         <RegExp input="$$6" output="&lt;director&gt;\1&lt;/director&gt;" dest="4+">
            <expression>([^\|,]+)$</expression>
         </RegExp>
         <RegExp input="$$8" output="\1" dest="6">
            <expression noclean="1">&lt;GuestStars&gt;([^&lt;]*)&lt;/GuestStars&gt;</expression>
         </RegExp>
         <RegExp input="$$6" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;/actor&gt;" dest="4+">
            <expression repeat="yes">([^\|]*)\|</expression>
         </RegExp>
         <RegExp input="$$6" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;/actor&gt;" dest="4+">
            <expression repeat="yes">([^,]*),</expression>
         </RegExp>
         <RegExp input="$$6" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;/actor&gt;" dest="4+">
            <expression>([^\|,]+)$</expression>
         </RegExp>
         <RegExp input="$$8" output="&lt;title&gt;\1&lt;/title&gt;" dest="4+">
             <expression>&lt;EpisodeName&gt;([^&lt;]*)&lt;/EpisodeName&gt;</expression>
         </RegExp>
         <!-- Absolute Numbering -->
         <RegExp conditional="absolutenumber" input="$$8" output="&lt;season&gt;1&lt;/season&gt;" dest="4+">
            <expression></expression>
         </RegExp>
         <RegExp conditional="absolutenumber" input="$$8" output="&lt;episode&gt;\1&lt;/episode&gt;" dest="4+">
            <expression>&lt;absolute_number&gt;([^&lt;]*)&lt;/absolute_number&gt;</expression>
         </RegExp>
         <!-- Normal Season/Episodes -->
         <RegExp conditional="!absolutenumber" input="$$8" output="&lt;season&gt;\1&lt;/season&gt;" dest="4+">
             <expression>&lt;SeasonNumber&gt;([^&lt;]*)&lt;/SeasonNumber&gt;</expression>
         </RegExp>
         <RegExp conditional="!absolutenumber" input="$$8" output="&lt;episode&gt;\1&lt;/episode&gt;" dest="4+">
             <expression>&lt;EpisodeNumber&gt;([^&lt;]*)&lt;/EpisodeNumber&gt;</expression>
         </RegExp>

         <RegExp input="$$8" output="&lt;thumb&gt;http://images.thetvdb.com/banners/\1&lt;/thumb&gt;" dest="4+">
            <expression>&lt;filename&gt;([^&lt;]+)&lt;/filename&gt;</expression>
         </RegExp>
         <RegExp input="$$8" output="&lt;aired&gt;\1&lt;/aired&gt;" dest="4+">
            <expression>&lt;FirstAired&gt;([^&lt;]+)&lt;/FirstAired&gt;</expression>
         </RegExp>
         <RegExp input="$$8" output="&lt;displayseason&gt;\1&lt;/displayseason&gt;" dest="4+">
            <expression>&lt;airsbefore_season&gt;([^&lt;]+)&lt;/airsbefore_season&gt;</expression>
         </RegExp>
         <RegExp input="$$8" output="&lt;displayepisode&gt;\1&lt;/displayepisode&gt;" dest="4+">
            <expression>&lt;airsbefore_episode&gt;([^&lt;]+)&lt;/airsbefore_episode&gt;</expression>
         </RegExp>
         <RegExp input="$$8" output="&lt;displayafterseason&gt;\1&lt;/displayafterseason&gt;" dest="4+">
            <expression>&lt;airsafter_season&gt;([^&lt;]+)&lt;/airsafter_season&gt;</expression>
         </RegExp>
         <RegExp input="$$8" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="4+">
            <expression>&lt;Rating&gt;([^&lt;]+)&lt;/Rating&gt;</expression>
         </RegExp>
         <expression noclean="1"></expression>
      </RegExp>
   </GetEpisodeDetails>

   <GetLanguages dest="3">
      <RegExp input="$$2" output="&lt;settings&gt;&lt;setting label=&quot;Language&quot; type=&quot;labelenum&quot; id=&quot;language&quot; values=&quot;$$8&quot; default=&quot;en&quot;&gt;&lt;/setting&gt;&lt;/settings&gt;" dest="3">
         <RegExp input="$$1" output="\1|" dest="8+">
            <expression repeat="yes">&lt;abbreviation&gt;([^&lt;]*)&lt;/abbreviation&gt;</expression>
         </RegExp>
         <expression noclean="1"></expression>
      </RegExp>
   </GetLanguages>
</scraper>


I've looked at my scaper (see code XMBC-On Xbox) and it's referencing the correct address. As I say it was working last week, it's got slightly better since my last post, I refreshed 'Angel' and all the episode thumbs came through but it refuses to acknowledge 'wide' banners, i only get the 'dvd cover' sized images.

emigrating
Site Admin
Posts: 278
Joined: Mon Aug 27, 2007 4:38 pm
Contact:

Re: Regenerating XML... Again

Postby emigrating » Thu Nov 19, 2009 6:28 pm

morphiousonline wrote:I've looked at my scaper (see code XMBC-On Xbox) and it's referencing the correct address. As I say it was working last week, it's got slightly better since my last post, I refreshed 'Angel' and all the episode thumbs came through but it refuses to acknowledge 'wide' banners, i only get the 'dvd cover' sized images.

But it's not - it's still referencing http://images.thetvdb.com/banners rather than just thetvdb.com.

It may have worked a week ago, but even then it was an unsupported way of grabbing images and it may only have been working intermittently.

morphiousonline
Posts: 4
Joined: Thu Nov 19, 2009 4:22 am

Re: Regenerating XML... Again

Postby morphiousonline » Fri Nov 20, 2009 6:15 am

Sorry guys, i'm an idiot. I've changed the scraper and its working perfectly now. Thanks for putting up with me and being so quick to sort me out.

liquidox
Posts: 15
Joined: Fri Nov 06, 2009 5:24 am

Re: Regenerating XML... Again

Postby liquidox » Tue Nov 24, 2009 6:23 pm

Not sure if anyone else is using Jamu & Mythtv, but since the downtime and XML regeneration, I'm experiencing this error:

Code: Select all

Traceback (most recent call last):
  File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 6344, in <module>
    main()
  File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 6329, in main
    process.processMythTvMetaData()
  File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 6045, in processMythTvMetaData
    if not len(self.config['localpaths']['posters']):
KeyError: 'posters'


Mind you it updates a lot of shows properly up to that point, it might even be done entirely (I never miss art/covers etc.), but I guess it should be fixed anyhow.