Language Fallback #6281

Open
opened 2025-12-22 03:58:48 +01:00 by backuprepo · 2 comments
Owner

Originally created by @jorensanbar on GitHub (Sep 17, 2024).

This issue respects the following points:

  • This is a bug, not a question or a configuration issue; Please visit our forum or chat rooms first to troubleshoot with volunteers, before creating a report. The links can be found here.
  • This issue is not already reported on GitHub (I've searched it).
  • I'm using an up to date version of Jellyfin Server stable, unstable or master; We generally do not support previous older versions. If possible, please update to the latest version before opening an issue.
  • I agree to follow Jellyfin's Code of Conduct.
  • This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one.

Description of the bug

When you get the information from TMDB using the default plugin, you should be able to perform a fallback translation in the language.

Reproduction steps

  1. Create new Programs Library with Spanis-Latam language and Mexico Country.
  2. Create new folder: BLEACH (2004) [tmdbid-30984] > Season 01
  3. Put any video for any episode S01E01.mp4
  4. Scan Library.

What is the current bug behavior?

If you search for information in Spanish (Mexico) and it doesn't exist, you should search for the information in the Spanish parent. (From es-MX to es)

This way you get the correct record since TMDB has configured that if the name is the same, you should leave the information for Spanish-Mexico blank and save the values ​​in Spanish-Spain.

Instead, you are saving the keyword that TMDB uses to omit information, in this case: Episode ##, and leaving the overview blank

imagen

You should skip the keyword used by TMDB (Episode ##) and get the texts with the parent language (ES)
imagen

What is the expected correct behavior?

To be able to obtain information about the parent language when the language with country code does not exist.

Example:
Language "es-MX" dont exist
Get language "es" for Spain,

Jellyfin Server version

10.9.11+

Specify commit id

No response

Specify unstable release number

No response

Specify version number

No response

Specify the build version

10.9.11

Environment

- OS: DEBIAN
- Virtualization: DOCKER
- Clients: Android TV, WEB
- Browser: FIREFOX, Chrome
- Plugins: Official TMDB

Jellyfin logs

-NONE-

FFmpeg logs

No response

Client / Browser logs

No response

Relevant screenshots or videos

No response

Additional information

No response

Originally created by @jorensanbar on GitHub (Sep 17, 2024). ### This issue respects the following points: - [X] This is a **bug**, not a question or a configuration issue; Please visit our forum or chat rooms first to troubleshoot with volunteers, before creating a report. The links can be found [here](https://jellyfin.org/contact/). - [X] This issue is **not** already reported on [GitHub](https://github.com/jellyfin/jellyfin/issues?q=is%3Aopen+is%3Aissue) _(I've searched it)_. - [X] I'm using an up to date version of Jellyfin Server stable, unstable or master; We generally do not support previous older versions. If possible, please update to the latest version before opening an issue. - [X] I agree to follow Jellyfin's [Code of Conduct](https://jellyfin.org/docs/general/community-standards.html#code-of-conduct). - [X] This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one. ### Description of the bug When you get the information from TMDB using the default plugin, you should be able to perform a fallback translation in the language. ### Reproduction steps 1. Create new Programs Library with Spanis-Latam language and Mexico Country. 2. Create new folder: BLEACH (2004) [tmdbid-30984] > Season 01 3. Put any video for any episode S01E01.mp4 4. Scan Library. ### What is the current _bug_ behavior? If you search for information in Spanish (Mexico) and it doesn't exist, you should search for the information in the Spanish parent. (From es-MX to es) This way you get the correct record since TMDB has configured that if the name is the same, you should leave the information for Spanish-Mexico blank and save the values ​​in Spanish-Spain. Instead, you are saving the keyword that TMDB uses to omit information, in this case: Episode ##, and leaving the overview blank ![imagen](https://github.com/user-attachments/assets/03b1c483-f43d-44ad-aa18-4645b637da28) You should skip the keyword used by TMDB (Episode ##) and get the texts with the parent language (ES) ![imagen](https://github.com/user-attachments/assets/63f4d35c-21f0-41c5-a8e3-ec95a24ae0ad) ### What is the expected _correct_ behavior? To be able to obtain information about the parent language when the language with country code does not exist. Example: Language "es-MX" dont exist Get language "es" for Spain, ### Jellyfin Server version 10.9.11+ ### Specify commit id _No response_ ### Specify unstable release number _No response_ ### Specify version number _No response_ ### Specify the build version 10.9.11 ### Environment ```markdown - OS: DEBIAN - Virtualization: DOCKER - Clients: Android TV, WEB - Browser: FIREFOX, Chrome - Plugins: Official TMDB ``` ### Jellyfin logs ```shell -NONE- ``` ### FFmpeg logs _No response_ ### Client / Browser logs _No response_ ### Relevant screenshots or videos _No response_ ### Additional information _No response_
backuprepo added the
enhancement
label 2025-12-22 03:58:48 +01:00
Author
Owner

@jorensanbar commented on GitHub (Sep 18, 2024):

This is an example of Language Fallback:

Call for Spanish (Mexico)
https://api.themoviedb.org/3/tv/30984/season/1/episode/1?api_key=THE_KEY&&language=es-MX

Returns:
{ "episode_number": 1, "name": "Episodio 1", "overview": "", }
Info is empty, only keyword "Episode ##" as name.

So, remove country from language:
https://api.themoviedb.org/3/tv/30984/season/1/episode/1?api_key=THE_KEY&&language=es

Returns:
{ "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.", }

@jorensanbar commented on GitHub (Sep 18, 2024): This is an example of Language Fallback: Call for Spanish (Mexico) https://api.themoviedb.org/3/tv/30984/season/1/episode/1?api_key=THE_KEY&&language=es-MX Returns: `{ "episode_number": 1, "name": "Episodio 1", "overview": "", }` Info is empty, only keyword "Episode ##" as name. So, remove country from language: https://api.themoviedb.org/3/tv/30984/season/1/episode/1?api_key=THE_KEY&&language=es Returns: `{ "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.", }`
Author
Owner

@ricardofcf commented on GitHub (Nov 13, 2025):

I'd also like to see this implemented, as it affects portuguese speakers too (and probably other languages). If the metadata isn't available in pt-PT, it would make sense for us to at least have the option, as it happens on the TMDb website, to fetch pt-BR. The TVDb plugin has this option but it appears to be broken.

@ricardofcf commented on GitHub (Nov 13, 2025): I'd also like to see this implemented, as it affects portuguese speakers too (and probably other languages). If the metadata isn't available in pt-PT, it would make sense for us to at least have the option, as it happens on the TMDb website, to fetch pt-BR. The TVDb plugin has this option but it appears to be broken.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#6281
No description provided.