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
Nevari atrast filmu vai TV pārraidi? Jāpiesakās, lai to izveidotu.
Vēlies novērtēt šo vienumu vai pievienot to sarakstam?
Neesi dalībnieks?
Atbilde no Travis Bell
on jūnijs 24, 2014 at 11:39 AM
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.
Atbilde no Sandor
on jūnijs 29, 2014 at 6:27 PM
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.