20 Nov 2019 - TVDB Scraper v3.2.0 is now available which reinstates scraping. TVDB are still in the process of fixing a number of bugs so there may still be further breakages. See this post. 2901570 (post)

TheTVDB.com Scraper absolute_number for Anime?
#63
TullariS Wrote:Found the same problem while updating my Naruto episode list. Looks like XBMC now scans episodes with forced season 1 correctly, but when doing the recursive scan for multipart episodes, it completely ignores the forced season.

Looks like this has to be fixed manually on the souce, at least until someone tracs this.

I'll stick the change here, just in case someone wants to have a go at recompiling.

Here is my DIFF:

Quote:Index: VideoInfoScanner.cpp
===================================================================
--- VideoInfoScanner.cpp (revision 29374)
+++ VideoInfoScanner.cpp (working copy)
@@ -885,12 +885,22 @@
{
season = reg.GetReplaceString("\\1");
episode = reg.GetReplaceString("\\2");
- myEpisode.iSeason = atoi(season);
- myEpisode.iEpisode = atoi(episode);
- myEpisode.cDate.SetValid(FALSE);
+ if (strlen(season) > 0 && strlen(episode) == 0)
+ { // no episode specification -> assume season 1
+ myEpisode.iSeason = 1;
+ if ((myEpisode.iEpisode = CUtil::TranslateRomanNumeral(season)) == -1)
+ myEpisode.iEpisode = atoi(season);
+ CLog::Log(LOGDEBUG, "adding new forced season 1, multipart episode %u", myEpisode.iEpisode);
+ }
+ else
+ { // season and episode specified
+ myEpisode.iSeason = atoi(season);
+ myEpisode.iEpisode = atoi(episode);
+ CLog::Log(LOGDEBUG, "adding new season %u, multipart episode %u", myEpisode.iSeason, myEpisode.iEpisode);
+ }
+ myEpisode.cDate.SetValid(FALSE);
free(season);
free(episode);
- CLog::Log(LOGDEBUG, "adding new season %u, multipart episode %u", myEpisode.iSeason, myEpisode.iEpisode);
episodeList.push_back(myEpisode);
free(remainder);
remainder = reg.GetReplaceString("\\3");
Reply
 
Thread Rating:
  • 2 Vote(s) - 5 Average


Messages In This Thread
[No subject] - by acaranta - 2009-01-30, 18:32
[No subject] - by spiff - 2009-01-30, 18:32
[No subject] - by acaranta - 2009-01-30, 18:34
[No subject] - by spiff - 2009-01-30, 18:34
[No subject] - by acaranta - 2009-01-30, 18:36
[No subject] - by acaranta - 2009-01-30, 18:40
[No subject] - by spiff - 2009-01-30, 18:50
[No subject] - by acaranta - 2009-01-31, 03:56
[No subject] - by spiff - 2009-01-31, 14:11
[No subject] - by goku31640 - 2009-02-02, 21:05
[No subject] - by spiff - 2009-02-02, 21:29
[No subject] - by goku31640 - 2009-02-03, 01:48
[No subject] - by acaranta - 2009-02-03, 07:57
[No subject] - by goku31640 - 2009-02-03, 08:05
[No subject] - by sstarcher - 2009-02-05, 16:51
[No subject] - by Maxim - 2009-02-05, 17:30
[No subject] - by sstarcher - 2009-02-05, 19:15
[No subject] - by acaranta - 2009-02-07, 02:56
[No subject] - by acaranta - 2009-02-07, 03:04
[No subject] - by acaranta - 2009-02-07, 03:07
[No subject] - by goku31640 - 2009-02-07, 04:41
[No subject] - by acaranta - 2009-02-07, 12:24
[No subject] - by goku31640 - 2009-02-07, 19:30
[No subject] - by goku31640 - 2009-02-07, 19:32
[No subject] - by goku31640 - 2009-02-13, 20:11
[No subject] - by acaranta - 2009-02-14, 20:21
[No subject] - by goku31640 - 2009-02-15, 03:36
[No subject] - by acaranta - 2009-02-15, 12:04
[No subject] - by tripe - 2009-02-19, 05:48
[No subject] - by Maxim - 2009-02-19, 17:32
[No subject] - by acaranta - 2009-02-21, 08:22
[No subject] - by sho - 2009-02-21, 12:00
[No subject] - by goku31640 - 2009-02-22, 08:26
[No subject] - by tripe - 2009-02-22, 21:43
[No subject] - by acaranta - 2009-02-23, 08:19
[No subject] - by WorldWide01 - 2009-03-22, 19:00
[No subject] - by spiff - 2009-03-22, 19:54
[No subject] - by WorldWide01 - 2009-03-24, 02:37
[No subject] - by spiff - 2009-03-24, 10:10
[No subject] - by WorldWide01 - 2009-03-24, 16:30
[No subject] - by spiff - 2009-03-24, 16:42
[No subject] - by edward.81 - 2009-05-03, 16:39
[No subject] - by edward.81 - 2009-05-03, 19:31
[No subject] - by spiff - 2009-05-05, 13:11
[No subject] - by psorcerer - 2009-05-08, 00:35
[No subject] - by spiff - 2009-05-08, 00:39
[No subject] - by psorcerer - 2009-05-08, 01:13
[No subject] - by Lithochasm - 2009-06-23, 20:46
[No subject] - by Lithochasm - 2009-11-04, 18:46
[No subject] - by spiff - 2009-11-04, 18:58
[No subject] - by Lithochasm - 2009-11-04, 19:27
[No subject] - by spiff - 2009-11-04, 19:40
[No subject] - by Lithochasm - 2009-11-04, 19:53
[No subject] - by spiff - 2009-11-04, 20:02
[No subject] - by Lithochasm - 2009-11-04, 20:09
[No subject] - by tbob19 - 2009-11-22, 12:05
[No subject] - by tbob19 - 2009-11-23, 10:45
[No subject] - by TullariS - 2010-01-05, 19:57
[No subject] - by chaoticmaster - 2010-04-16, 19:01
[No subject] - by TullariS - 2010-04-18, 19:29
[No subject] - by TullariS - 2010-04-18, 21:00
[No subject] - by TullariS - 2010-04-19, 13:34
[No subject] - by jmarshall - 2010-04-19, 22:16
[No subject] - by chaoticmaster - 2010-04-28, 17:31
[No subject] - by TullariS - 2010-05-08, 17:45
[No subject] - by TullariS - 2010-05-08, 17:47
[No subject] - by jmarshall - 2010-05-09, 00:22
[No subject] - by jmarshall - 2010-05-21, 01:55
[No subject] - by Hijo del sol - 2010-05-25, 17:26
[No subject] - by Hijo del sol - 2010-05-26, 12:59
[No subject] - by chaoticmaster - 2010-07-24, 17:51
[No subject] - by chaoticmaster - 2010-07-24, 17:52
[No subject] - by dandel - 2010-07-26, 05:28
[No subject] - by Celestialtorpor - 2010-08-15, 00:58
[No subject] - by Xeijin - 2010-08-28, 13:56
[No subject] - by TullariS - 2010-08-30, 16:59
[No subject] - by Celestialtorpor - 2010-10-31, 22:40
[No subject] - by jwcalla - 2011-07-13, 00:02
[No subject] - by eliaske1130 - 2011-09-20, 16:24
[No subject] - by josephn - 2011-10-16, 04:20
[No subject] - by josephn - 2011-10-18, 04:02
[No subject] - by AncientPC - 2012-01-21, 01:05
[No subject] - by MasterCATZ - 2012-03-07, 11:21


Logout Mark Read Team Forum Stats Members Help
TheTVDB.com Scraper absolute_number for Anime?52