xbmc / metadata.themoviedb.org.python

Other
46 stars 41 forks source link

Problem with pt-br language #44

Closed k2-br closed 4 years ago

k2-br commented 4 years ago

The setings.xml file describes the Brazilian Portuguese language as pt-br, however the correct one is pt-BR. The lowercase string is returning the same results as (pt) portuguese of portugal.

Please change from pt-br to pt-BR.

rmrector commented 4 years ago

Thanks, I'll take a look. Can you list the names of a few movies affected?

k2-br commented 4 years ago

Yes. The movie "Terminator: Dark Fate" with pt or pt-br: "Exterminador Implacável: Destino Sombrio" com pt-BR: "O Exterminador do Futuro: Destino Sombrio"

URL Example: with pt: http://api.themoviedb.org/3/discover/movie?api_key=YOUKEY&with_genres=28&page=1&language=pt

with pt-br: http://api.themoviedb.org/3/discover/movie?api_key=YOUKEY&with_genres=28&page=1&language=pt-br

with pt-BR http://api.themoviedb.org/3/discover/movie?api_key=YOUKEY&with_genres=28&page=1&language=pt-BR

In the url examples, you will notice that the results in pt and pt-br are the same. Therefore, the need to capitalize the BR.

Several films and series have different titles for Brazil and Portugal