Kodi Community Forum

Full Version: TMDB scraper ignores zh-cn laguage setting for movie poster image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I set my language in TMDB scraper settings. All other fields are fetched correctly in my language but the movie poster image is always in English. I see TMDB scraper in other applications can fetch movie poster image in correct languages. Can this be done in kodi TMDB scraper addon?
(2018-03-14, 10:58)RuralHunter Wrote: [ -> ]I set my language in TMDB scraper settings. All other fields are fetched correctly in my language but the movie poster image is always in English. I see TMDB scraper in other applications can fetch movie poster image in correct languages. Can this be done in kodi TMDB scraper addon?
 This is exactly how it is designed and should be the default behavior. We will need more info to figure out why it is not happening like this for you.
OK, I found the problem. My language is Chinese so I selected "zh-cn" in TMDB language settings. I can see from the log that the request TMDB add-on sent is "https://api.tmdb.org/3/movie/399055/images?api_key=92db8778ccb39d825150332b0a46061d&language=zh-cn&include_image_language=zh-cn,en,null" which returns posters all in English. I have to use "https://api.tmdb.org/3/movie/399055/images?api_key=92db8778ccb39d825150332b0a46061d&language=zh&include_image_language=zh,en,null" to get Chinese posters. That is to say, change "zh-cn" to "zh".
Good catch! This will not going to be trivial to resolve. Not for the tmdb scraper; however I can/ will issue a fix for the Universal Scraper today/ tomorrow, so you can use that.
It's great!, thanks!
Fixed in UMS.
Who is the maintainer of TMDB? I still see the problem in the latest version.
Provide a Debug Log which captures the problem.
Is that still necessary? As I already checked the log and found root cause: the language code "zh-cn" isn't supported by TMDB. Using it is just simply wrong.
Of course it is necessary.
[removed]
(2018-10-25, 07:29)Karellen Wrote: [ -> ]Of course it is necessary.
@Karellen 
OK, I got the log. Please check it here: https://paste.kodi.tv/jomofepiso.kodi
Just as I stated half year ago, look at the post image request to tmdb:
https://api.tmdb.org/3/movie/19995/image...cn,en,null

The request only returns images with language "en" or "null" because "zh-cn" is not valid here(it is valid in other request though).
Just compare these 2 urls you will see the problem.
https://api.tmdb.org/3/movie/19995/image...uage=zh-cn
https://api.tmdb.org/3/movie/19995/image...anguage=zh
...and what's wrong with using UMS instead of TMDB scraper? It provides you 100% same functionality and more.
No, there is nothing wrong with UMS, except it seems a little slower than TMDB. I was just running another Kodi install and the TMDB is there by default.
You can configure UMS to fetch info/ artwork only from TMDB and also run the search on TMDB instead of IMDB and then the speed should be exactly the same.
Pages: 1 2