I just thought to share my tip to getting 446 out of 451 series to lookup correct, 3 didn't work right (stuff like Hagane no Renkinjutsushi vs Hagane no Renkinjutsushi (2009)), and 2 that didn't lookup and would crash xmbc any time I did lookup it (I have a workaround however).
1. My folder setup is thus...
/Anime
/series 1
/series 2
etc
I am using the Main Title as given by Anidb, so Hagane no Renkinjutsushi vs FullMetal Alchemist and so on. I have almost NO lookup misses, and I can deal with fixing 5 series out of 451.
2. Episodes using Absolute numbering (which is how anime likes it)
I use the Anidb client to rename all files to the default in AOM.
like so...
Hagane no Renkinjutsushi - 02 - Body of the Sanctioned [Keep-ANBU](32446438)[AniDB].avi
and the key part... adding regex to advancedsettings.xml (which goes in your userdata directory (c:\users\userid\appdata\roaming\xmbc\userdata on my Windows 7 box)
<advancedsettings>
<tvshowmatching action="prepend">
<regexp>(?:[\ _-]{2,3})(\d{1,3})</regexp>
</tvshowmatching>
</advancedsettings>
It's actually a really simple regex that so far works flawlessly. Basically I match any combination of a space a _ or a - from 2 to 3 of them(which I don't capture as part of the regex, but is used for matching), followed by between 1 and 3 digits. End result is I will match between 1 and 3 digits as long as they follow the anidb default naming convention.
Note: This doesn't work for specials, but I gather that's an XMBC thing so for specials I rename them to the default XBMC way of S00Exx as specials belong in Season 00
Now I don't have any "normal" TV shows (I mainly want XMBC for Movies & Anime), so I haven't tested it with normal stuff...
I have also experienced the dreaded (and sometimes frequent) XBMC crash on lookup, which I have a workaround that has worked 100% for me, but I've not had the time to test it more then a few times. I'll post after I add the next batch of series and try looking them up.
[WIP] AniDB.net Anime Video Scraper
calico
Junior Member Posts: 2 Joined: Feb 2011 Reputation: 0 |
2011-02-17 05:42
Post: #181
|
| find quote |
pathw
Junior Member Posts: 28 Joined: Feb 2011 Reputation: 0 |
2011-02-19 11:33
Post: #182
Hi, this scraper seems to be working for me. But how do people deal with movies and specials?
with movies anidb's episode number data will not be very useful. and anidb's xml doesnt seem to contain specials. |
| find quote |
salival
Member Posts: 65 Joined: May 2010 Reputation: 0 |
2011-02-19 12:45
Post: #183
pathw Wrote:Hi, this scraper seems to be working for me. But how do people deal with movies and specials? There are a number of options for the movies. The first is to use the anidb scraper, in which case you don't get any info from the tvdb, since it's a movie. The second is to set the content of the folder to "movies". It will not show up in tv shows. You will have fanart from the moviedb. You can link movies and tv-shows, although I don't know the specifics. Specials need to be recognized as season 0. The easiest way to accomplish this is to put "S00E##", where ## is the specials episode number. e.g. special 01 becomes S00E01, special 2 becomes S00E02. |
| find quote |
pathw
Junior Member Posts: 28 Joined: Feb 2011 Reputation: 0 |
2011-02-19 13:38
Post: #184
hi
I am using the anidb scraper. But with movies it fails. Something to do with the episode numbering. Hence my question. Similarly with debugging on when i see the xml spit out from anidb, I dont see the specials. |
| find quote |
salival
Member Posts: 65 Joined: May 2010 Reputation: 0 |
2011-02-19 15:06
Post: #185
For movies, with this scraper, you should put in "S01E01" in the filename, or depending on your advancedsettings.xml, something like "ep1". This way the scraper thinks it's episode 1 and fetches the info. This all has to do with how anidb.net is structured and how XBMC handles movies versus tv-shows.
The specials should work if you put S00E01 etc. in the file name. Movies aren't considered specials though. |
| find quote |
pathw
Junior Member Posts: 28 Joined: Feb 2011 Reputation: 0 |
2011-02-19 18:27
Post: #186
ah I see.
Ive been using anidb clients to name my files for a while. So I changed the scraper to accommodate this (and its a better naming convention imho). The advantage is, I can be sure that my advanced settings regex is precise. so under GetEpisodeList Ive made 2 changes Quote: <RegExp input="$$1" output="<episode><title>\4</title><url cache="$$20.xml">\1</url><epnum>\2</epnum><season>1</season><id>\1</id><aired>\3</aired></episode>" dest="8"> I still have some bugs though. I've got an anime called A.LI.CE http://anidb.net/perl-bin/animedb.pl?sho...e&aid=4448, but this gets identified as http://anidb.net/perl-bin/animedb.pl?sho...e&aid=4448 similarly akikan (2009) (crappy anime) http://anidb.net/perl-bin/animedb.pl?sho...e&aid=7132 gets identified as http://anidb.net/perl-bin/animedb.pl?sho...e&aid=6182 so I'll look into that bit to see if it can be made more accurate. But any pointers would be appreciated
(This post was last modified: 2011-02-19 19:14 by pathw.)
|
| find quote |
salival
Member Posts: 65 Joined: May 2010 Reputation: 0 |
2011-02-19 20:52
Post: #187
Most of the time this happens you should try to refresh the info of the show (just go the info screen and choose refresh). You will get a list of possible matches where you can choose the correct one.
It also can help to name the containing folder exactly as the series is called on anidb.net. |
| find quote |
pathw
Junior Member Posts: 28 Joined: Feb 2011 Reputation: 0 |
2011-02-20 17:11
Post: #188
since I have a lot of shows, I'd like to avoid false positives. Im thinking of using the nfourl functionality. How do I name my nfo files?
|
| find quote |
pathw
Junior Member Posts: 28 Joined: Feb 2011 Reputation: 0 |
2011-02-20 20:00
Post: #189
nm I found it. tvshow.nfo
I wrote a script to generate this for my folders, so most of my problems are gone. ![]() If this script is useful to people I can share it. Also I made changes to anidb.xml that works with anidb's naming convention for specials. I'm left with only one thing at the moment. I modified the getEpisodeList in anidb.xml to allow non numeric episode numbers. For movies it generates something like <epnum>Complete Movie</epnum> or <epnum>Part 1 of 5</epnum> my advancedsettings.xml finds the correct name on my file. but for some reason a movie that is in multiple parts is named as Complete Movie. I'll try to get the portion of the debug log and post it here. |
| find quote |
Finalspace
Junior Member Posts: 43 Joined: Jan 2011 Reputation: 0 |
2011-02-26 13:04
Post: #190
I tried the anidb scrapper as well to detect my renamed files.
All files are renamed in the following format: Code: anime/[group] anime - ep01 [optional crc].fileextAll anime titles are the same as the anidb romaji anime title. I used the following regex mask only in my advanced settings (prepend): Code: [/\._ \-]()ep([S0-9]+)(-[0-9]+)?v?V?[1-5]?After scanning, it detected 80% of all series, but there were several mismatches which resulted in a wrong fanart/banner and wrong episode informations and no specials was detected :-( What is definitily weird, that some folders are not processed by xbmc, even its not hidden and does not contains special characters. Its simply skipped by the "automatic content detection", but why? If i manually "Detect for new content" for the selected folder, the selected anime is definitily processed and the episodes will be detected. Btw: XBMC crashes after a few hours often (system reset requires). ----------------- Would that be the better(perfect) way to generate the .nfo files for all anime folders? So that only the "banners/fanart" will be retrieved?? If yes, i will make a application in python which will be doing this using anidb UDP API :-) |
| find quote |

([^<]+)</title>.*?</episode></expression>
Search
Help