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
Nemôžeš nájsť film alebo seriál? Prihlás sa a pridaj ho.
Chcete ohodnotiť alebo pridať túto položku do zoznamu?
Nie ste členom?
Odpoveď od Travis Bell
dňa 24. jún, 2014 o 11:39AM
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.
Odpoveď od Sandor
dňa 29. jún, 2014 o 6:27PM
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.