Multi language scraper - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Scraper Development (/forumdisplay.php?fid=60)
+--- Thread: Multi language scraper (/showthread.php?tid=58791)
Pages: 1 2
Multi language scraper - Tolriq - 2009-09-29 22:09
After a lot of reading (wiki is far from up to date ), i find how to add settings and everything about scraper.
The only thing i'd like to do now is to be able to change the labels for settings based on XBMC language configuration or a setting in the scraper.
Is this possible ?
- spiff - 2009-09-29 22:15
currently no. feel free to hardcode it to whatever language your scraper grabs for now
- Tolriq - 2009-09-29 22:25
The fact is the setting is for changing the returned language data
I'll go english so to be more international
Is the language param in the xml header important for anything today ?
- spiff - 2009-09-29 22:27
it's used for fallback determine which scraper to translate url's for in urlnfo. i.e. if your language is german and we find a german scraper which can handle imdb urls (i.e. we test them first) we choose that one
- Tolriq - 2009-09-29 22:40
ok thanks for the quick answers
- haifischjunge - 2009-09-30 19:54
it would be great if the tvshow scraper would also fallback to other languages if theres no result returned in english.
eg. i have some german and french tv shows and they have only german and french show entries in thetvdb.org. if would be great if xbmc would use other languages in this cases.
perhaps entering an order of prefered languages could do that?
- spiff - 2009-09-30 19:56
it's not our responsibility. the server should handle that
- haifischjunge - 2009-09-30 20:20
mmh, strange if I just do the query http://www.thetvdb.com/api/GetSeries.php?seriesname=XXXX, I only get results for shows if they have an english entry
had just a quick look at the api (no deeper research) the selection of the language should only start after the query so the call above should bring up all entries no matter what language.
- haifischjunge - 2009-09-30 20:58
my bad, thought the language defaults in the query to all not to english, however I assume the xbmc scraper sets the query language according to the settings in xbmc and so it cant get any results.
I assume it would be possible to set eg. 3-5 prefered languages and that scraper would try if no result is found in the primary language.
eg: languages: 1: en, 2e, 3:fr
so if no result is returned for /api/GetSeries.php?seriesname=QUERY&language=en it tries /api/GetSeries.php?seriesname=wir+sind+kaiser&language=de and so on.
mmh, don't see right now were the matching hook would be. since the new scraper format not in the tvdb-part but more in the scraper framework....
edit: for me the workaround is to add an english entry for the tv shows in question
- Hannes The Hun - 2010-06-17 12:37
was that fixed in the meantime or is there any workaround?
I got some TV ripz from a friend, all of the german Tatort episodes with Schimanski (Götz George)
when I do a search in thetvdb.com I can see all the episodes and series detail I'm looking for, but XBMC only shows me the (en) entrys when scraping, not the (de) ones I need
is there an option to tell XBMC to show me *all* scraper results for a given search/series?