The Movie Database 지원

Hello i'm actually trying to get the translation for some films and series (in french) and sometimes the translation is available and other times the translation isn't available, but on the web site of THE MOVIE DB all the movies and series have a translation in french so if you know how they do or how i can have all the translation tell me please grin .

6 댓글 (1 / 1)

Jump to last post

What's an example request that you're making that isn't working like you expect?

$movie_url = 'https://api.themoviedb.org/3/movie/44217/translations?api_key=MyAPI_KEY'; In this exemple i want the translation for vikings in french and the translation isn't available only 5 languages are available :/ and on the database website the description is in french how did you get it ?

I'm going to assume you're actually looking for the TV show Vikings, is that right? If so, you need to make a call to the TV endpoints, not movie. The id 44217 you are calling above is for the movie Jasmine Woman.

https://api.themoviedb.org/3/tv/44217/translations?api_key=###

Or better yet, with append_to_response:

https://api.themoviedb.org/3/tv/44217?api_key=###&append_to_response=translations

Thank's for the tips ( about append_to_response ) but i didn't see the translation in french :( . Should I put a translation=fr ? or something ?

Did you update your request URL to the TV method? The call you were making above is to the movie, not the TV show.

curl -v "http://api.themoviedb.org/3/tv/44217/translations?api_key=###"
*   Trying 54.235.145.144...
* TCP_NODELAY set
* Connected to api.themoviedb.org (54.235.145.144) port 80 (#0)
> GET /3/tv/44217/translations?api_key=### HTTP/1.1
> Host: api.themoviedb.org
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After
< Cache-Control: public, max-age=28800
< Content-Type: application/json;charset=utf-8
< Date: Wed, 12 Dec 2018 15:14:41 GMT
< ETag: "dd854c1200631e17af0460c3c3088ca7"
< Server: openresty
< Vary: Accept-Encoding
< X-Memc: HIT
< X-Memc-Age: 19827
< X-Memc-Expires: 8973
< X-Memc-Key: d24a41d0d73496e0fd0410b2aa93ed48
< Content-Length: 21024
< Connection: keep-alive

And the response, which I've truncated but as you can see French is there:

{
  "id": 44217,
  "translations": [
    ...
    {
      "iso_3166_1": "FR",
      "iso_639_1": "fr",
      "name": "Français",
      "english_name": "French",
      "data": {
        "name": "",
        "overview": "Les exploits d'un groupe de vikings de la fin du 8ème siècle jusqu'au milieu du 11ème, mené par Ragnar Lodbrok, l'un des plus populaires héros viking de tous les temps, qui a régné quelques temps sur le Danemark et la Suède...",
        "homepage": ""
      }
    },
    ...
  ]
}

oh ok I think i found what I was looking for Thank's Travis smile

찾으시는 영화나 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?

로그인