Assistance de TMDB

When I use the api in spanish, I saw that Title shows the Original Title and in parenthesis the Translated Title, for example The Queen (id:1165), in spanish "title": "The Queen(La Reina)" while "original_title": "The Queen".

Should the api return "title": "La Reina" and "original_title": "The Queen" and let the consumer application mix or not the titles?

Maybe for a future api version, or to be compatible with already made applications add a "translated_title" item.

In my case, for a spanish name I have to remove the original_title from title, then remove the parenthesis then build the same string again because some other movies and/or some other scrappers have no mix.

Saying in some other way, there is no way to get the translated title from a json item without some code that can fail because changes. In the case of this movie, there is no spanish title using: get/movie/{movie_id}/alternative_titles.

2 réponses (sur la page 1 sur 1)

Jump to last post

@backupluis said:

When I use the api in spanish, I saw that Title shows the Original Title and in parenthesis the Translated Title, for example The Queen (id:1165), in spanish "title": "The Queen(La Reina)" while "original_title": "The Queen".

Should the api return "title": "La Reina" and "original_title": "The Queen" and let the consumer application mix or not the titles?

Maybe for a future api version, or to be compatible with already made applications add a "translated_title" item.

In my case, for a spanish name I have to remove the original_title from title, then remove the parenthesis then build the same string again because some other movies and/or some other scrappers have no mix.

Saying in some other way, there is no way to get the translated title from a json item without some code that can fail because changes. In the case of this movie, there is no spanish title using: get/movie/{movie_id}/alternative_titles.

The response to an API Request is the data or translations that have been entered by users.
In this case:
Original Title: The Queen
Title: The Queen (La Reina)
Understand Title as Translated Title or Local Title or Localized Title or Title used in your country.
It is not necessarily a Translation or Literal Translation, the exact words of the original text.

What was entered in the field is what you will receive in the response.

The Title must be the one used on screen when you watch movie.
Do you know which one was used?
If you know a good source for this information, please post it here.
In the poster we have here, in Spanish, the title is The Queen and we have it right below (LA REINA).
https://image.tmdb.org/t/p/original/e2nS4Yl8ggUlAV2qpnLRYL4Hatb.jpg
I believe that this is why the Title is with The Queen (La Reina).

Thank for your response. It's ok because the cover title says it on some spanish markets, I just wondering because I though that it could be the translated title, my fail. Anyway, I found the cover of the released dvd in argentina and only says "La Reina" https://imgur.com/a/qLMr9bR I use to build title with: title (original_title) because most of the scrappers and other api's don't include the text of original_title into title, except tmdb and this movie. In this case, title INCLUDE the original title, from my point of view is a redundancy of data, but is the way that was presented in the cover, so, it's ok.

Thanks!!!!

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