Kodi Community Forum
TheTVDB: How does it work? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60)
+--- Thread: TheTVDB: How does it work? (/showthread.php?tid=123777)



TheTVDB: How does it work? - MKay - 2012-02-24

Hi,

currently I am analyzing the tvdb-scraper (for Dharma) and have a question about the (general) scraper-behaviour:

Inside <GetSearchResults> the found tv shows will be returned.
And one result contains a url where information about the tv show can be found.
So far so good Smile

In case of the tvdb-scraper this url points to a zip-archive.
Now I am wondering how this is handled by the scraper-engine, because the zip-file itself contains 3 xml-files.
Which one will be used in the following <GetDetails>-call?
Are all these xmls combined to one large xml file or how does it work? Smile

Best Regards,
MKay


- mkortstiege - 2012-02-24

Yep, exactly. In case a .zip is found we extract and append the contents (see https://github.com/xbmc/xbmc/blob/master/xbmc/utils/ScraperUrl.cpp#L223).


- MKay - 2012-02-26

OK, thx Smile