The Movie Database Support

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.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login