[Solved]TV Scraper not returning epnum
#1
I wrote up this post and then solved it just before I clicked post Wink. I am leaving it as is in the hope that it may help someone else.

Solution:
Whilst XMBC->System->addons->enabled->TV Information->TVDB->configure has global options for 'single season/absolute order' and 'DVD order' each TV show folder can also have it's own settings which are not over-ridden by this!

If no epnum is being returned, yet everything else matches, then it's likely your episode order is not matching your naming convention. Order can be DVD, Absolute (aka single season), or Normal (nothing ticked in configure). If you have single season ticked then the scraper is using <absolute_number/> to match and many shows on thetvdb.com do not have an absolute number (check the en.xml for that), and in my case below Big Bang does indeed have an absolute_number only for eps 10 and 11.

If using Aired Date order, and show is not found, and where <title> is found but epnum is not, the solution may be; XBMC->Video->Files, then right click ( or c/context) the folder, select change content, configure, untick DVD and Absolute, apply, highlight folder again, press i (information), refresh, (use internet if asked). Repeat for all shows that you know are in aired order that do have a season number.

I do not know how or why the wrong settings got applied to those folders as I never would have chosen single season for BBT, it may be an issue related to upgrading XBMC version. I did not find the information in the wiki, and I am not sure where I should add it, perhaps http://wiki.xbmc.org/index.php?title=Vid...s/TV_shows ? But I feel show ordering needs to be understood/explained better.

(original post below that hints at the problem)

Summary:
<epnum> is blank yet tv show is found and <EpisodeNumber> is in the en.zip/en.xml from thetvdb.com

I have an ongoing issue with the TV Scraper not returning epnum but it does return every other field as a match. I am not the only person with this issue . This seems to be an error in xml parsing.

Points to note
  • Not all shows seem to be affected
  • Not all episodes are affected despite a consistent naming scheme named from thetvdb.com (via theRenamer)
  • Affected episodes/shows are found by theRenamer without manual massaging (not all shows in the log are renamed, ignore them if you like)
  • DVD order is off in the scraper configure; have tried both single season on and off but currently set to off

Example.
(starting with line 3205 in log)
09:41:18 T:48400 DEBUG: VideoInfoScanner: Found episode match smb://netpc/video/tv series/big bang theory/season 1/the big bang theory.s01e01.pilot.avi (s1e1) [[Ss]([0-9]+)[][ ._-]*[Ee]([0-9]+(?Sad?:[a-i]|\.[1-9])(?![0-9]))?)([^\\/]*)$]

(line 3334)
09:41:19 T:48400 DEBUG: scraper: GetEpisodeList returned <episodeguide><episode><id>2321301</id><title>Unaired Pilot</title><aired></aired><epnum></epnum><season>1</season><url cache="80379.xml">http://www.thetvdb.com/api/1D62F2F90030C444/series/80379/all/en.zip</url></episode>
<episode><id>4302970</id><title>Access All Areas</title><aired>2012-04-05</aired><epnum></epnum><season>1</season><url cache="80379.xml">http://www.thetvdb.com/api/1D62F2F90030C444/series/80379/all/en.zip</url></episode>
<episode><id>4302972</id><title>It All Started With A Big Bang</title><aired>2012-04-05</aired><epnum></epnum><season>1</season><url cache="80379.xml">http://www.thetvdb.com/api/1D62F2F90030C444/series/80379/all/en.zip</url></episode>
<episode><id>332484</id><title>Pilot</title><aired>2007-09-24</aired><epnum></epnum><season>1</season><url cache="80379.xml">http://www.thetvdb.com/api/1D62F2F90030C444/series/80379/all/en.zip</url></episode>

en.xml from en.zip from http://www.thetvdb.com/api/1D62F2F90030C...all/en.zip using url found above.
-<Episode>
<id>332484</id>
<Combined_episodenumber>1</Combined_episodenumber>
<Combined_season>1</Combined_season>
<DVD_chapter/>
<DVD_discid>Disc 1</DVD_discid>
<DVD_episodenumber/>
<DVD_season/>
<Director>James Burrows</Director>
<EpImgFlag>2</EpImgFlag>
<EpisodeName>Pilot</EpisodeName>
<EpisodeNumber>1</EpisodeNumber>
<FirstAired>2007-09-24</FirstAired>
<GuestStars>Vernee Watson-Johnson|Brian Patrick Wade</GuestStars>
<IMDB_ID>tt0775431</IMDB_ID>
<Language>en</Language>
<Overview>Brilliant physicist roommates Leonard and Sheldon meet their new neighbor Penny, who begins showing them that as much as they know about science, they know little about actual living.</Overview>
<ProductionCode/>
<Rating>7.7</Rating>
<RatingCount>374</RatingCount>
<SeasonNumber>1</SeasonNumber>
<Writer>Chuck Lorre|Bill Prady</Writer>
<absolute_number/>
<filename>episodes/80379/332484.jpg</filename>
<lastupdated>1280233996</lastupdated>
<seasonid>28047</seasonid>
<seriesid>80379</seriesid>
</Episode>

You can see everything is matched from en.xml except the epnum, despite epnum being present and correct in the xml.

(For an example of where it works, see season 1 episodes 10 and 11)
Reply

Logout Mark Read Team Forum Stats Members Help
[Solved]TV Scraper not returning epnum 0