دعم الموقع

I have not been receiving tv episode stills lately. The values returns but it is always an empty array. Did I miss an announcement or change?

https://api.themoviedb.org/3/tv/91363/season/1/episode/2?api_key=API_KEY&append_to_response=credits,videos,images

7 ردود (على هذه الصفحة 1 من 1)

Jump to last post

@bronkula said:
TV Episode stills returning empty array
I have not been receiving tv episode stills lately. The values returns but it is always an empty array. Did I miss an announcement or change?
https://api.themoviedb.org/3/tv/91363/season/1/episode/2?api_key=API_KEY&append_to_response=credits,videos,images

Hmmm
I tested your URL and I think I got the images in the end.
https://api.themoviedb.org/3/tv/91363/season/1/episode/2?api_key=THE_KEY&append_to_response=credits,videos,images

air_date    "2021-08-18"
crew    […]
episode_number  2
guest_stars […]
name    "What If… T'Challa Became a Star-Lord?"
overview    "The rough-and-tumble space pirates known as the Ravagers abduct T’Challa instead of Peter Quill."
id  3062390
production_code ""
runtime 37
season_number   1
still_path  "/urF7o2y7sG6GB53R0krSk9krw0E.jpg"
vote_average    7.152
vote_count  79
credits 
cast    […]
crew    […]
guest_stars […]
videos  
results []
images  
stills  
0   
aspect_ratio    1.778
height  2160
iso_639_1   null
file_path   "/urF7o2y7sG6GB53R0krSk9krw0E.jpg"
vote_average    5.454
vote_count  3
width   3840
1   
aspect_ratio    1.778
height  1080
iso_639_1   "en"
file_path   "/nYi8xASA30NvnohsEbSikjp0SXj.jpg"
vote_average    0
vote_count  0
width   1920

That shows a still path, but the stills array is empty.

@bronkula said:
That shows a still path, but the stills array is empty.

Sorry, English is not my native language.
I don't understand what you mean.
For me both images are available.
https://image.tmdb.org/t/p/original/urF7o2y7sG6GB53R0krSk9krw0E.jpg
https://image.tmdb.org/t/p/original/nYi8xASA30NvnohsEbSikjp0SXj.jpg

Well... that's bad, because the array is empty on my site using my api_key. Is there possibly something i'm doing wrong? https://filmswith.com/tv/91363/1/2

@bronkula said:
Well... that's bad, because the array is empty on my site using my api_key.

Now I understand.
You are talking about the still array of your page on your website.
You're not talking about the still array from the JASON page response from the TMDb API server.
Since you posted your API Request, I imagined you had tested it in a tab in your browser.
But he didn't test it.
Well, if you test it you will see that the information is there.
https://api.themoviedb.org/3/tv/91363/season/1/episode/2?api_key=THE_KEY&append_to_response=credits,videos,images

Is there possibly something i'm doing wrong? https://filmswith.com/tv/91363/1/2

Yes, something is certainly wrong.
Does this problem occur with all films and series or just with this one in your example specifically?
Did you develop the code for your page or is it a third-party plugin/template?

So I think I've narrowed it down.
The full url i'm calling is:
https://api.themoviedb.org/3/tv/91363/season/1/episode/2?api_key=API_KEY&language=en-US&include_adult=false&append_to_response=credits,videos,images
It appears that it is language=en-US that is the problem.
If this is included the api only returns an empty array.
Am I doing that wrong, or has that changed?

[edit] Also this seems to affect all shows. Not just this one.

@bronkula said:

So I think I've narrowed it down.
The full url i'm calling is:
https://api.themoviedb.org/3/tv/91363/season/1/episode/2?api_key=API_KEY&language=en-US&include_adult=false&append_to_response=credits,videos,images
It appears that it is language=en-US that is the problem.
If this is included the api only returns an empty array.
Am I doing that wrong, or has that changed?

[edit] Also this seems to affect all shows. Not just this one.

See the NOTE on this page.
https://developer.themoviedb.org/reference/tv-series-images

Note

If you have a language specified, it will act as a filter on the returned items.
You can use the include_image_language param to query additional languages.

That is, using the "&append_to_response=images" resource:

If you do not specify/use the "&language=" filter
then text information will be provided in the default language,
and images will be provided either all, all languages and/or no language (null).

But...

If you specify/use the "&language=" filter with the "&append_to_response=images" resource
then you must also specify the languages of the images you want using "&include_image_language="

For example
&include_image_language=null,pt,en,fr
In this case, use null for no language, normally backdrops do not have a language, and more Portuguese, English and French.
Separating with a comma all come from these languages.
You can add other languages you want.

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول