Kodi Community Forum
Multi language scraper - 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: Multi language scraper (/showthread.php?tid=58791)



Multi language scraper - Tolriq - 2009-09-29

Hello,

After a lot of reading (wiki is far from up to date :p ), 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 ?

Regards,

Tolriq


- spiff - 2009-09-29

currently no. feel free to hardcode it to whatever language your scraper grabs for now


- Tolriq - 2009-09-29

The fact is the setting is for changing the returned language data Smile

I'll go english so to be more international Smile

Is the language param in the xml header important for anything today ?


- spiff - 2009-09-29

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

ok Smile thanks for the quick answers Smile


- haifischjunge - 2009-09-30

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

it's not our responsibility. the server should handle that


- haifischjunge - 2009-09-30

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

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, 2:de, 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 Wink


- Hannes The Hun - 2010-06-17

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?


- spiff - 2010-06-17

set your language in scraper settings.


- Hannes The Hun - 2010-06-17

under settings --> video --> scrapers I don't have any option to change language, there's only a "enable fallback based on scraper language"

edit: ah damn, I just found it! this setting is hidden under "settings" of the "Set Content" menu!

thanks a bunch!


- spiff - 2010-06-17

yeah, very "hidden". in particular since i stressed SCRAPER settings ;P