The Movie Database サポート

Hi,

Getting the alternative titles for Rocky from here: http://api.themoviedb.org/3/movie/1366/alternative_titles?api_key=XXXX returns this:

{
  "id":1366,
  "titles": [
    {"iso_3166_1":"RU","title":"Рокки"},
    {"iso_3166_1":"US","title":"Rocky I"},
    {"iso_3166_1":"BR","title":"Rocky I"},
    {"iso_3166_1":"Србија","title":"Роки"},
    {"iso_3166_1":"ES","title":"Rocky 1"}
  ]
}

"Србија" (Cyrillic for Serbia) is not a valid iso 3661-1 code. This should be be "RS", which is the correct iso 3661-1 code for the Republic of Serbia (as it's officially known). I've reported this as a content error: https://www.themoviedb.org/talk/53a741d00e0a261436004603

I mention it here because I didn't expect the API to return invalid iso codes like that. My application tried to insert the value into a 2 character database field (as all iso 3166-1 codes are), but couldn't make it fit and threw a wobbly.

Could you fix the API to not do that, or should I check for, and reject, invalid iso codes?

EDIT: I found the same thing happened for:

I worked out how to fix the data, but I do think the API shouldn't return bad codes like this.

Thanks for providing a great (and free!) resource,

Sandor

2 replies (on page 1 of 1)

Jump to last post

Hey Sandor,

I've made a ticket for this.

In the meantime, as you find them it would be easiest to pop in and remove the invalid entry.

Cheers.

Hi Travis,

OK, thanks for that.

I also found bad codes on Superbad, Bad Teacher, Lesbian Vampire Killers, What Happens in Vegas, Bridesmaids & In Her Shoes. I've fixed all the ones I've found, but there's obviously a few about.

Sandor.

映画やテレビ番組が見つかりませんか?ログインして作成してください。

全般

s 検索バーに移動する
p プロファイルメニューを開く
esc 開いているウィンドウを閉じる
? キーボードショートカットウィンドウを開く

メディアのページ

b 戻る(または該当する場合は親に)
e 編集ページに行く

テレビ番組のシーズンのページ

(右矢印)次のシーズンに行く
(左矢印)前のシーズンに戻る

テレビ番組のエピソードのページ

(右矢印)次のエピソードに進む
(左矢印)前のエピソードに戻る

全ての画像のページ

a 画像追加ウィンドウを開く

全ての編集ページ

t 翻訳選択を開く
ctrl+ s フォームを送信する

ディスカッションのページ

n 新しいディスカッションを作成する
w 監視ステータスを切り替える
p 公開/非公開を切り替える
c 閉じる/開くを切り替える
a アクティビティを開く
r ディスカッションに返信
l 最後の返事に行く
ctrl+ enter メッセージを送信する
(右矢印)次のページ
(左矢印)前のページ

設定

このアイテムを評価したり、リストに追加したりしたいですか?

ログイン

メンバーではありませんか?

登録してコミュニティに参加