TheTVDB.com Scraper absolute_number for Anime?
#59
Lightbulb 
psorcerer Wrote:Sounds quite complicated to me.
Meanwhile I've done a quick hack to make it work using empty regexp for the season value (e.g. something like ([0-9]*) and append="yes" in advanced settings)

Code:
@@ -830,7 +829,12 @@
           if (season && episode)
           {
             CLog::Log(LOGDEBUG,"found match %s (s%se%s) [%s]",strLabel.c_str(),season,episode,expression[j].c_str());
-            myEpisode.iSeason = atoi(season);
+            if (season[0] != '\0')
+            {
+              myEpisode.iSeason = atoi(season);
+            }
+            else
+            { myEpisode.iSeason = 1; }
             myEpisode.iEpisode = atoi(episode);
             episodeList.push_back(myEpisode);
             bMatched = true;

Hi

I've been following the absolute numbering issue for a while now, and i have been trying some of the solutions on this forum, and at the same time learning a bit of how it all works.

The closest i got was by prepending the regexp [\._\ \-]()([0-9]{2,3})([\._\ \-][^\\/]*) - making the season blank. Also i had to change the tvdb scraper to default to season 0 with absolute numbering because the enumerator defaults to season 0 when the season is blank.

A workaround could be done for the specials (put them on a separate folder and disable absolute numbering) but that just mixes them up with all the other episodes.

With psorcerer's patch (blank seasons defaulting to season 1) things get quite good but i was thinking of an alternative.

My idea was that if the enumerator reads the scraper settings and finds that absolute numbering is enabled, it could not only set the season to 1, but also concatenate the season and episode number. The default regexp [\._ \-]([0-9]+)([0-9][0-9])([\._ \-][^\\/]*) splits the episode number into season and episode number and then the enumerator joins them back again.

As an example, the regexp above marks the file Bleach_164.avi as S1E64 and the enumerator would change it to S1E164 if absolute numbering was on.

My problem is that i don't exactly know how to read the scraper settings within the enumerator to make the changes. I have knowlege of some programing languages but not C++, not counting the size of the XBMC code.

Suggestions anyone?
Reply


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?2