Assistance de TMDB

Hey, I'm confused about the behavior of the "translations" on the site. I'm looking at the following movie entry which has a "title" for en-US and ta-IN as shown on the website.

If I'm looking at the API response the "ta-IN" object actually has no "title" set:

    "translations": {
        "translations": [
            {
                "iso_3166_1": "US",
                "iso_639_1": "en",
                "name": "English",
                "english_name": "English",
                "data": {
                    "homepage": "",
                    "overview": "For Kathiravan, who lost his left leg in an accident,his 8-year-old daughter is his world. She is diagnosed with a congenital heart problem and 7 Million INR is needed to save his daughter. Unable to raise such a huge amount, he plans to kidnap businessman Rudra's daughter.  Instead Kathir becomes embroiled in his own kidnapping plot.",
                    "runtime": 117,
                    "tagline": "",
                    "title": "Poikkal Kuthirai"
                }
            },
            {
                "iso_3166_1": "IN",
                "iso_639_1": "ta",
                "name": "தமிழ்",
                "english_name": "Tamil",
                "data": {
                    "homepage": "",
                    "overview": "",
                    "runtime": 0,
                    "tagline": "",
                    "title": ""
                }
            }
        ]
    }

My guess is that the website somehow has a fallback based on the data in the "original_title" field, and as original_language matches the object in the "translations" array it falls back to that.

"original_language": "ta",
"original_title": "பொய்க்கால் குதிரை",

Is this the correct assumption? Is that a bug or expected behaviour? I think it would be less confusing if the API response resembles what's on the website, but I might be missing some complexity there.

Thanks!

1 réponse (sur la page 1 sur 1)

Jump to last post

Hi @clapton, on the API this is expected. We do not support fallback queries on the API at this time.

We have an open ticket to think about adding this here.

With regards to the original title, you'll have to look at the "primary info" data to glean that right now. The website tries to infer the connection, but it's not stored in the DB that way, which is what is being returned on the API.

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion