PDA

View Full Version : IMDB scraper preference


Fogl
2008-11-19, 00:20
I recently finished first version of the CSFD (Czech Movie Database) scraper. I have a lot movies with old fashion (non-xml) NFO files, which have 2 urls. IMDB and CSFD. Now, when I set a content of the folder to be parsed by CSFD scraper, from some reason, XBMC uses IMDB scraper. This problem will disappear only if I delete IMDB url from the NFO file (which I ultimately want to avoid) .
Now questions:
1) Why IMDB overrides my scraper selection?
2) What is general rule for picking scraper?
Thanks.

vdrfan
2008-11-19, 00:45
General rule is to override any scraper setting if a valid nfo is found. If the url is part of a nfourl enabled XBMC scraper (like imdb) it will be used instead, otherwise the selected scraper will be used.
I was thinking about a chained nfourl lookup once ago to let the selected scraper use the imdb link and take it as reference to scrape the given site/api using the already known imdbid.

Fogl
2008-11-19, 00:52
Ok, but I have a valid NFO with 2 URLs. Both are valid. First URL is for CSFD. And figure, it is NOT used, IMDB (second URL) is used instead. Why? Is this correct behavior?

vdrfan
2008-11-19, 00:55
Yeah, that's the way .nfo files are handled. The scanner will search for ANY url and try to match an exiting nfourl enabled scraper.

BTW.. Welcome to the forums ;)

Fogl
2008-11-19, 01:08
Thanks ;-)

Btw, what do you think is the best solution for my problem? The best means the least amount of work...
Czech movies with NFO files, 2 URLs inside, IMDB + CSFD. I want to force XBMC to DO NOT use IMDB, but CSFD.
Thanks for any suggestion.

daveage
2008-11-19, 10:26
May I ask you, if you will place somewhere the csfd scraper? I would apreciate that :D

spiff
2008-11-19, 10:39
fogl,

this is sort of a black hole, the order of things that is. we basically run through the scrapers in whatever order the filesystem returns, which usually is by creation date.

i'm not entirely sure how to handle this. a hack would be to simple process imdb last, i think this would basically cover all scenarios where this pop up.

better ideas are appreciated however.

oh, and to handle your issue just now you could simply temporarily move imdb.xml out of the way...

Fogl
2008-11-19, 15:49
Well, because I have a mix of Czech and English movies, removing IMDB is not an options. I have folder, which I like to be processed with my CSFD scraper, then a I have bunch of folders I'm processing with IMDB.
My temporary workaround is I renamed all NFO files in the Czech section so I'm scraping only by folder-name. It works for about %90 of all movies. For the rest I created new NFO files with only CSFD link. Took me about 2hours in total.
I agree with your proposition, that IMDB should be processed as the last option. Any localized link should be preferred.

To daveage: I will post my new CSFD scraper in the development section.

Magua
2009-06-13, 00:10
Hi Fogl, do you have working CSFD scrapper? thanks Honza

Eso Rimmer
2009-07-13, 02:35
It's a shame that there is no ČSFD scraper for XBMC. I'm trying to figure out scraper creation according to wiki but it seem to be too hard for me to get it. :(