دعم الموقع

Hello!

I'm seeing another error when extracting the translated information.

When the information is requested in Spanish (Spain) it is obtained correctly. https://api.themoviedb.org/3/tv/30984/season/1/episode/1?api_key=THE_KEY&&language=es-es

{ "episode_number": 1, "name": "El día que me convertí en Shinigami", "overview": "Ichigo Kurosaki es un chico de 15 años que puede ver espíritus. Intentando proteger el espíritu de una niña pequeña de un hollow, tiene un encuentro con un espíritu malvado y una shinigami. Después Ichigo Kurosaki encuentra a la chica en su habitación, ella se presenta como Rukia Kuchiki, y explica el objetivo de los shinigami. El hollow vuelve y deja a Rukia Kuchiki herida, para salvar a la familia de Ichigo Rukia le traspasa sus poderes y así se convierte en un shinigami.", }

But when it is obtained in Spanish (Mexico), the name and overview are not loaded. https://api.themoviedb.org/3/tv/30984/season/1/episode/1?api_key=THE_KEY&&language=es-mx

{ "episode_number": 1, "name": "Episodio 1", "overview": "", }

The website says that if the name is the same as Spanish (Spain) it should be left blank, but I see that the blank space is automatically replaced with: "Episode ##" by the system. And this is what the API is returning

9 ردود (على هذه الصفحة 1 من 1)

Jump to last post

The fallback language is not yet working on the API. That mean that currently, if you receive this result, you should manually redo the query with es-ES.

By the way, correct queries are es-ES and es-MX instead of es-es and es-mx. The country code should always be in capital letters.

I see that the page includes a new language: Spanish - Argentina.

If you call the API with this language, the information for spanish (Spain) is returned.

https://api.themoviedb.org/3/tv/30984/season/1/episode/1?api_key=THE_KEY&&language=es-AR

{ "episode_number": 1, "name": "El día que me convertí en Shinigami", "overview": "Ichigo Kurosaki es un chico de 15 años que puede ver espíritus. Intentando proteger el espíritu de una niña pequeña de un hollow, tiene un encuentro con un espíritu malvado y una shinigami. Después Ichigo Kurosaki encuentra a la chica en su habitación, ella se presenta como Rukia Kuchiki, y explica el objetivo de los shinigami. El hollow vuelve y deja a Rukia Kuchiki herida, para salvar a la familia de Ichigo Rukia le traspasa sus poderes y así se convierte en un shinigami.", }

So if it works to return information from a native language, why doesn't it do this with es-MX?

@jorensanbar said:

So if it works to return information from a native language, why doesn't it do this with es-MX?

Did you try with es-MX ? In your first message, you have written es-mx in your query.

Did you try with es-MX ? In your first message, you have written es-mx in your query.

Yes, return Name: Episodio 1 and empty Overview.

@jorensanbar said:

I see that the page includes a new language: Spanish - Argentina.

If you call the API with this language, the information for spanish (Spain) is returned.

https://api.themoviedb.org/3/tv/30984/season/1/episode/1?api_key=THE_KEY&&language=es-AR

This query is wrong as it is written with "&&" instead of "&". So, I'm not sure which language is taken in account.

Note : I don't see an es-AR language on that page.

In the main settings: Spanish (Argentina)

https://api.themoviedb.org/3/tv/30984/season/1/episode/1?api_key=THE_KEY&language=es-AR Call the API with es-AR language return Spanish-Spain information: es-ES return

https://api.themoviedb.org/3/tv/30984/season/1/episode/1?api_key=THE_KEY&language=es-MX Call the API with es-MX language return empty values: es-MX return

@jorensanbar said:

In the main settings: Spanish (Argentina)

This dropbox is not the language in which the series is available, but the language in which you can see the website.

The languages available for the series are the ones listed in the first dropbox, above this one, as visible in my screenshot.

Consequently :

  • For es-AR, the series doesn't have a translation page. Consequently, the query will ignore the "-AR" part and default to "es-ES" as Spain is the default country for the Spanish language.
  • For es-MX, the API will take the values present on the es-MX page and return them even if they are empty due to the fact that the fallback is not currently working in the API.

:( So the solution would be to load the database and copy the information from es-ES to es-MX, so that the API can return the correct information. At least the name, as the other values ​​can be obtained from other places like TVDB

No, as the data stored in the database are correct. This is purely an API problem.

The correct solution, as long as the fallback is not working correctly on the server side of the API, is to manage the fallback on the client side of the API as this is done by other applications.

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول