TheTVDB.com Scraper absolute_number for Anime? - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Scraper Development (/forumdisplay.php?fid=60)
+--- Thread: TheTVDB.com Scraper absolute_number for Anime? (/showthread.php?tid=44667)
- WorldWide01 - 2009-03-24 16:30
LOL! Okay. It's obvious I'm not making any sense, so scrap what I've said and let me know how you'd solve the following:
Without altering the filenames or separating them out into different folders, I'd like to have the anime series split into seasons as according to theTVDB.com.
The query to theTVDB would be by absolute episode number (177, for example). Once it finds the episode, it also now has the Season and corresponding episode number as well. I'd then like to use the season and episode number returned from the scrape to sort the series into my library.
Does that make any more sense? If so, would you mind giving me the junior dev treatment and laying out the process for me?
Thanks for your continued responsiveness.
- spiff - 2009-03-24 16:42
what is needed is a change in the enumeration code itself. currently, as i said, it uses a map with a pair of season,episodenr as key. what would be needed is
1) a set of regexp'es to enumerate episode-only filenames
2) code in the enumerator to use these regexp's and which puts the season number at some random number (1 being the logical)
3) code in the scraper to return the episode guide using absolute numberings and with the season set to the one chosen over
4) backend support for translation - currently there is none. if you request absolute numbering you only get those returned iirc.
- edward.81 - 2009-05-03 16:39
I cant get absolute numbering to work.
I try to scrape bleach.
From the log the episode number is detected correctly [serie 01 episode 001] from log (s01e001)
but the xbmc detect it as special episode 01
I have make some try by putting 2 file in the folder with following names:
When i scan i see in top right corner the msg telling me that are searching the episodes number 0x01 and 1x01 but both in library have the tittle of special 01.
- edward.81 - 2009-05-03 19:31
Ok i found why appen this.
The problem is the regexp in tvdb.xmb (line 189)
If the special episodes are on top of the xml file downloaded from tvdb this found the absolute number of the first item that are not empty and ignore the empty <absolute_number></absolute_number>
This regExp instead work...for now..
- spiff - 2009-05-05 13:11
do NOT abuse report post. this is NOT what it is for. you just spammed ALL the forum operators and all of them thought there was something wrong with a post.
if you want our attention you do things the proper way and submit a diff on trac.
- psorcerer - 2009-05-08 00:35
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)
- spiff - 2009-05-08 00:39
hmm, that isnt a bad idea at all it solves part of the puzzle in a not too shabby way. you still only have a single season of course, but it sure scratches the anime itch.
trac it please.
- psorcerer - 2009-05-08 01:13
spiff Wrote:hmm, that isnt a bad idea at all it solves part of the puzzle in a not too shabby way. you still only have a single season of course, but it sure scratches the anime itch.
I think it's good enough if combined with absolute numbering hack for thetvdb.com You get all the episodes inside one season but with the correct info and numbering.
- Lithochasm - 2009-06-23 20:46
Hello everyone. I'm new here but i'v been using XBMC for awhile and I cant get the absolute numbering to identify any of my anime.
I enabled absolute numbering in the tvdb options, and I also tried the hack psourcer posted since none of my anime has a season number: ( it looks like Darker Than Black 01[001A3f5].mkv )
Edit:// Didn't see that i needed the <advancedsettings> tag. Now it only found one episode for three anime series out of 15. Ie, it found episode two of cowboy bebop. This sounds like a regex problem. Let me see if I can pinpoint whats going on.
Yeah it looks like its matching season 0 for all of the series and only returning the specials. I guess the only fix so far that doesn't require me to rename everything is to use an .nfo file. Any other ideas?
- Lithochasm - 2009-11-04 18:46
Sorry to beat a dead horse, but has there been any progress with anime scraping and the TVDB? Its been five months and I still haven't gotten my anime to be scraped correctly.