TMDB scraper ignores zh-cn laguage setting for movie poster image
#1
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?
Reply
#2
(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.
Reply
#3
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".
Reply
#4
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.
Reply
#5
It's great!, thanks!
Reply
#6
Fixed in UMS.
Reply
#7
Who is the maintainer of TMDB? I still see the problem in the latest version.
Reply
#8
Provide a Debug Log which captures the problem.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#9
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.
Reply
#10
Of course it is necessary.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#11
[removed]
Reply
#12
(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
Reply
#13
...and what's wrong with using UMS instead of TMDB scraper? It provides you 100% same functionality and more.
Reply
#14
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.
Reply
#15
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.
Reply

Logout Mark Read Team Forum Stats Members Help
TMDB scraper ignores zh-cn laguage setting for movie poster image0