Giter Site home page Giter Site logo

Comments (4)

bakerboy448 avatar bakerboy448 commented on June 19, 2024

We use TMDb's spoken language or the movie's original language depending. https://wiki.servarr.com/radarr/faq#how-does-radarr-handle-foreign-movies-or-foreign-titles

This seems to be an issue with TMDb incorrectly reporting the movie's language data more than a radarr issue...no?

what movie(s) are examples of this issue?

from radarr.

gabrielmagno avatar gabrielmagno commented on June 19, 2024

Let me share an screenshot just to make sure that I'm referring to the correct thing.
image

The above movie is this one: https://www.themoviedb.org/movie/446159-bacurau

But I believe this happens for any brazilian movie. Here is a small list of some other movies in my library with the same issue:

from radarr.

mynameisbogdan avatar mynameisbogdan commented on June 19, 2024

This is going to be an issue, because TMDB and mediainfo for the file has just Portuguese.

from radarr.

gabrielmagno avatar gabrielmagno commented on June 19, 2024

This is going to be an issue, because TMDB and mediainfo for the file has just Portuguese.

I was afraid that was the case :(

My idea would be using the field origin_country from TMDB API (https://developer.themoviedb.org/reference/movie-details) to make the disambiguation. If the original_language from TMDB (or the audio stream of the file) is pt [Portuguese] and BR is in the origin_country list, we assign the language as pt-BR [Portuguese (Brazil)].

Here is an example of the output for the movie Bacurau (truncated to highlight only the relevant part of he response):
Request: https://api.themoviedb.org/3/movie/446159
Response:

...
  "id": 446159,
  "imdb_id": "tt2762506",
  "origin_country": [
    "BR"
  ],
  "original_language": "pt",
  "original_title": "Bacurau",
...

So, the original_language is pt, and the origin_country is BR, so the language should be pt-BR.

from radarr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.