It seems many background images (if not all) have no ISO country code, so when attempting to access image info using the include_image_language parameter the background images are not listed. Here is an example:
http://api.themoviedb.org/3/collection/115570?api_key=xxx&append_to_response=images
This url lists all the background images
http://api.themoviedb.org/3/collection/115570?api_key=xxx&append_to_response=images&language=en&include_image_language=??
Once a language is specified there is no way to list the background images without an ISO specified country. What should be used here? We have tried null but it needs to be a valid ISO code per the API docs.
.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם
?רוצה לדרג או להוסיף פריט אל רשימה
?לא חבר אתר
תגובה מאת Travis Bell
ב-מרץ 24, 2014 ב-2:16אחרי חצות יום
Hi Tim,
The documentation mentions that null is valid option for
include_image_language
. I'm not entirely sure I understand the issue. Here's the example straight from the docs:Did you read the "Image Languages" section? Does that cover it?
תגובה מאת Tim Hobbs
ב-מרץ 24, 2014 ב-2:24אחרי חצות יום
I missed that in the docs, but we do pass in null, yet in this instance (and many others ) no background images are listed at all.
http://api.themoviedb.org/3/collection/115570?api_key=xxx&append_to_response=images&language=en&include_image_language=en,null
Results:
..."images":{"backdrops":[],...
EDIT Trying the example URL works, so it must be some difference in the collections versus movies API.
תגובה מאת Travis Bell
ב-מרץ 24, 2014 ב-2:56אחרי חצות יום
Hey Tim,
If I request this method here:
I am getting back:
תגובה מאת Tim Hobbs
ב-מרץ 24, 2014 ב-3:07אחרי חצות יום
Include
&language=en
and then it doesn't work.I am new to the project and the API, but I believe the idea is to get the description for the specified locale, but when that is specified then the background images do not display even when
null
is included.תגובה מאת Travis Bell
ב-מרץ 24, 2014 ב-3:15אחרי חצות יום
Ah yes, I missed that param in my example.
I've created a new ticket for that here. I'll try to it fixed up in the next day or two.
Cheers.
תגובה מאת Travis Bell
ב-מרץ 26, 2014 ב-7:11אחרי חצות יום
The fix for this should be live. Mind giving it a go now?
תגובה מאת Tim Hobbs
ב-מרץ 26, 2014 ב-11:23אחרי חצות יום
Yep. Works as expected now:
"images":{"backdrops":[{"aspect_ratio":1.78,"file_path":"/r7MMQenUURHhAVHFymtOb8AX4Bm.jpg","height":1080,"iso_639_1":"xx", "vote_average":"5.39915966386555","vote_count":5,"width":1920},{"aspect_ratio":1.78,"file_path":"/y6IWUJkDWbPiLOuc23jbLotRPIu.jpg","height":1080,"iso_639_1":null, "vote_average":"5.26041666666667","vote_count":1,"width":1920},{"aspect_ratio":1.78,"file_path":"/xb6wgQzRLWoZSDk06esOMc9PbwU.jpg","height":1080,"iso_639_1":null, "vote_average":"5.26041666666667","vote_count":1,"width":1920}]