Поддръжка на The Movie Database

When using append_to_response to add images the response contains posters but backdrops is always empty.

http://api.themoviedb.org/3/movie/597?api_key=1234&append_to_response=images&language=en

I realise this is due to adding the language parameter as the iso_639_1 field is null for many (all) backdrops. Can the iso_639_1 field be defaulted to en, or should I make a separate request for images without the langauge restriction?

5 отговора (на страница 1 от общо 1)

Jump to last post

Hi Nigel,

Can the iso6391 field be defaulted to en

No, this is not the right way to address this.

should I make a separate request for images without the langauge restriction?

For backdrops, yes.

The issue here is that most backdrops indeed do not have a language set since most backdrops don't have a language. There are some backdrops that do though, which is why the parameter is optional for backdrops. Movies like Inception for example.

There's an open ticket for the basics of this issue. At some point I'll dedicate some time to figure out the best way to let all combinations be queryable.

Thanks for the clarification, two requests it is then.

Sorry to open this up again, but I have tried to follow the various threads.

I am trying to search for all appropriate artwork for a movie and for me, that is "chosen language" & "empty language"

http://tmdb.lighthouseapp.com/projects/83077/tickets/133 is closed as invalid, but without an explanation of what to do.

If I query on "en" I loose the empty language artwork (backdrops mostly) and if I leave the language off the call I get ALL artwork for all languages.

The only way I can see to do this call is to leave language off and parse the entire list of artwork looking for my language and empty. Is this the suggested approach or have I missed something?

Hi Stuart,

Yes, at this point I deemed it to currently work the way it was designed. There's some backdrops with languages and most without. You can query for all of them without specifying a language and for a language by making sure it's present.

Your best bet is to make a separate call to the backdrops method with no language parameter set.

Ok, as long as I am doing it the "correct" way.

As an aside, you might want to run a clean up script as there are some artwork with empty language ("") and some with "null"s

Не можете да откриете филм или сериал? Влезте, за да го създадете.

Глобални

s фокусиране на лентата за търсене
p отваряне на меню "Профил"
esc затваряне на отворен прозорец
? отваряне на прозореца за клавишните комбинации

На страниците за медиите

b връщане назад
e към страницата за редактиране

На страниците за сезони

(стрелка надясно) към следващ сезон
(стрелка наляво) към предишния сезон

На страниците за епизоди

(стрелка надясно) към следващ епизод
(стрелка наляво) предишен епизод

На всички страници за изображения

a отваряне на прозорец за добавяне на изображение

На всички страници за редактиране

t меню за избор на език, на превода
ctrl+ s изпращане на форма

На страниците за дискусия

n създаване на нова дискусия
w статус на наблюдаване
p публична/лична
c затваряне/отваряне
a отваряне на действия
r отговаряне в дискусия
l към последния отговор
ctrl+ enter изпращане на вашето съобщение
(стрелка надясно) следваща страница
(стрелка наляво) предишна страница

Настройки

Искате ли да го оцените или добавите към списък?

Вход