Hello,
I just noticed a strange behaviour in language
parameter processing in Movie getDetails API.
From documentation:
Pass a ISO 639-1 value to display translated data for the fields that support it. minLength: 2 pattern: ([a-z]{2})-([A-Z]{2}) default: en-US
If I use this default value with append_to_response=images
, images response is empty.
To get a response, I have to force language to null
(to get all images) or to a 2-chars ISO 3166-1 value (to get filtetred images).
Movie getImages API has the same bug. If it is not a bug, API documentation should be updated to replace parameter documentation.
How to reproduce : https://developers.themoviedb.org/3/movies/get-movie-images use "Try it out" with an API key, default language value and a valid film id.
Best regards,
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on July 12, 2019 at 1:21 AM
Hi @bcourtine,
Have you had a read through our image language docs? It outlines half the of issue you're talking about here.
The other half is that images have not been updated to support the region based language codes yet, so when you specify
?language=fr-FR
, there's no images that are going to match. So in order to complete this query, as per the docs above, I would suggest doing:As an example.
Reply by Benoît Courtine
on July 12, 2019 at 5:59 AM
Hi @travisbell .
Thanks a lot for this complete response. I missed this specific "image language docs" page when looking for documentation (so I did not know about this
image language docs
parameter).Best regards,