The Movie Database 지원

Hello! I´d like to report an issue with the actual image fetching API.

When a query gives any kind of country-Region language as parameter (Ex: pt-BR , en-GB, etc...), then the API doesn't return anything... because images are registered in DB only with the first characters of the COUNTRY (pt , en, es, ru, etc...).

I'd like to ask the devs to make a modification. When a query with 2-part language comes, please discard the trace and 2nd part, and use only the 2 first digits to execute the query and bring the results.

15 댓글 (1 / 1)

Jump to last post

Hi anderbytes,

Images haven't been migrated yet. At this time, I don't have an ETA as to when I'll get to them. Images will be a decently large undertaking and I'm not sure I'll be able to efficiently add support for the extra queries without re-writing the image service. All I can say is that I should be able to get to it this year, but beyond that I can't say.

Cheers.

Thanks for the effort.

Besides creating different country-Region options, I understand that it will be difficult to know what to do with the existing images, that are probably mixed up between countries for the same language.

Travis, while you don't create the new structure that supports 5-digit language code instead of 2-digit, can you PLEASE do some workaround?

Like this: when a 5-digit query comes... serve it's metadata as usual (because the metadata DB has 5-digit), but when looking for images matches, consider only the first 2 digits of the 5-digit code inputted, then it will return correct language images, instead of excluding them.

Hi anderbytes,

I'm not sure if I understand the issue you're describing. The system as it stands today will only take the first 2 characters of a language key for images (that's the issue, it ignores the country). But the language query itself is still working.

https://api.themoviedb.org/3/search/movie?api_key=###&query=captain+america+civil+war&language=pt-BR
https://api.themoviedb.org/3/movie/271110?api_key=###&language=pt-BR

Both return http://image.tmdb.org/t/p/original/rxmF5Eb4J3ev3I10swoCqhShVuq.jpg as the poster, for example. The part of this that isn't hooked up is the country query, so in essence, this is just working the same way that a vanilla pt query worked before since that's all that is stored in our image database.

I now understand why the confusion happened.

The app that I use and fetches images uses a specific query url to fetch several images (specific languages, english as fallback, etc...), and goes to https://api.themoviedb.org/3/movie/296100?api_key=#####&append_to_response=casts,releases,images,keywords,trailers&language=pt-BR&include_image_language=pt-br,null,en

so the variable that TMDB ignores 5-digit is "include_image_language", not "language".

I'll tro to ask the other dev to use poster_path , but please considere that include_image_language still ignores 5-digit inputted.

It could use the first 2 digit there

The other app's dev has skirted the client-side of the issue by changing the query specifically to TMDB and trimming to 2-digit. So... I have no rush anymore, but the issue still exists, ok? :-/

So... about the "include_image_language" parameter... can you confirm it doesn't support 5-digit language? Thanks

That's great, the include_image_language does not support the pt-BR notation yet, and indeed I think I'm just splitting the values and passing them to the DB so by specifying the full 5 chars, it's not going to find anything. Obviously when images get properly updated, this will start working. For now, you'll have to pass just pt in.

Any estimate on create 5-digit image language databases? To difference images from "pt" to "pt-PT" and "pt-BR" ?

I do not have an estimate at this time. Like I mentioned above, it's a pretty massive job and one that I don't think I have time for in the immediate near future. It's on deck but so are like 100 other things ;)

Hehe no prob. Just asking.

I'll be coming back in this post by 2017. See ya

Hello again Travis.

Is that feature in the next Top 50, maybe? :-)

Haha, yes, probably top 50 but still not in my immediate plans. Based on what I have laid out at the moment, I'd say another few months.

Pretty please? :-)

Hopefully I'll find time this year but there are many items that are higher priority. I can't make any estimate as to when I will get to this one.

찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.

전체

s 검색 바 띄우기
p 프로필 메뉴 열기
esc 열린 창 닫기
? 키보드 단축키 창 열기

미디어 페이지

b 돌아가기
e 편집 페이지로 이동

TV 시즌 페이지

(우 화살표) 다음 시즌으로 가기
(좌 화살표) 이전 시즌으로 가기

TV 에피소드 페이지

(우 화살표) 다음 에피소드로 가기
(좌 화살표) 이전 에피소드로 가기

모든 이미지 페이지

a 이미지 추가 창 열기

모든 편집 페이지

t 번역 선택 열기
ctrl+ s 항목 저장

토론 페이지

n 새 토론 만들기
w 보기 상태
p 공개/비공개 전환
c 열기/닫기 전환
a 활동 열기
r 댓글에 글쓰기
l 마지막 댓글로 가기
ctrl+ enter 회원님의 메세지 제출
(우 화살표) 다음 페이지
(좌 화살표) 이전 페이지

설정

Want to rate or add this item to a list?

로그인