Soporte de 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 respuestas (en la página 1 de 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.

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión