The Movie Database Support

Until yesterday I was using the API language as pt-BR with no problems. Suddenly, today, it became pt-PT. Here, you can see there's a discrepancy between poster and movie name (the poster is still in pt-BR): https://ibb.co/ypw84Gb Here you can see there's even movies in hindi when using pt-BR: https://ibb.co/SPX5c1f

6 replies (on page 1 of 1)

Jump to last post

For images, there are no separation between pt-PT and pt-BR. All Portuguese images are in the same category.

Ok, but what about the movie names? Until yesterday they were pt-br for me (which is what i want), and today they were pt-pt. There's even hindi names. Something must have broken.

To get help, you need to give us the exact query you are using to get them.

import { useState, useEffect } from "react"

const App = () => {

  const [topMovies, setTopMovies] = useState([]);

  const getTopRatedMovies = async (url) => {
    const res = await fetch(url);
    const data = await res.json();

    setTopMovies(data.results);
  }

  useEffect(() => {
    const topRatedUrl = `https://api.themoviedb.org/3/movie/top_rated?${apiKey}&language=pt-BR`;

    getTopRatedMovies(topRatedUrl);
  }, []);

  return (
    <div className="App">
      <div>
        {console.log(topMovies)}
      </div>
    </div>
  );
}

export default App

The app that I'm building is written using React. This is a simplified version of App.jsx, it's made just to expose inside of the console the data that I'm fetching from the API. Where there's ${apiKey} in the code, you can replace for api_key=YOURAPIKEY

Here is a screenshot of the console, showing that the name for the movie The Godfather is in pt-PT, even though I'm using pt-BR: https://ibb.co/Mk4tFNQ

Here's what I get when I run the queries:

https://api.themoviedb.org/3/movie/top_rated?language=pt-BR

"id": 238, "original_language": "en", "original_title": "The Godfather", "overview": "Em 1945, Don Corleone é o chefe de uma mafiosa família italiana de Nova York. Ele costuma apadrinhar várias pessoas, realizando importantes favores para elas, em troca de favores futuros. Com a chegada das drogas, as famílias começam uma disputa pelo promissor mercado. Quando Corleone se recusa a facilitar a entrada dos narcóticos na cidade, não oferecendo ajuda política e policial, sua família começa a sofrer atentados para que mudem de posição. É nessa complicada época que Michael, um herói de guerra nunca envolvido nos negócios da família, vê a necessidade de proteger o seu pai e tudo o que ele construiu ao longo dos anos.", "popularity": 152.285, "poster_path": "/oJagOzBu9Rdd9BrciseCm3U3MCU.jpg", "release_date": "1972-03-14", "title": "O Poderoso Chefão"

https://api.themoviedb.org/3/movie/top_rated?language=pt-PT

"id": 238, "original_language": "en", "original_title": "The Godfather", "overview": "Baseado no best-seller de Mário Puzo, o filme acompanha o percurso de Don Vito Corleone, o patriarca de uma das mais notáveis e importantes famílias da máfia italiana de Nova Iorque.", "popularity": 152.285, "poster_path": "/oJagOzBu9Rdd9BrciseCm3U3MCU.jpg", "release_date": "1972-03-14", "title": "O Padrinho"

Seems to be working now for me.

@robbie3999 said:

Here's what I get when I run the queries:

https://api.themoviedb.org/3/movie/top_rated?language=pt-BR

"id": 238, "original_language": "en", "original_title": "The Godfather", "overview": "Em 1945, Don Corleone é o chefe de uma mafiosa família italiana de Nova York. Ele costuma apadrinhar várias pessoas, realizando importantes favores para elas, em troca de favores futuros. Com a chegada das drogas, as famílias começam uma disputa pelo promissor mercado. Quando Corleone se recusa a facilitar a entrada dos narcóticos na cidade, não oferecendo ajuda política e policial, sua família começa a sofrer atentados para que mudem de posição. É nessa complicada época que Michael, um herói de guerra nunca envolvido nos negócios da família, vê a necessidade de proteger o seu pai e tudo o que ele construiu ao longo dos anos.", "popularity": 152.285, "poster_path": "/oJagOzBu9Rdd9BrciseCm3U3MCU.jpg", "release_date": "1972-03-14", "title": "O Poderoso Chefão"

https://api.themoviedb.org/3/movie/top_rated?language=pt-PT

"id": 238, "original_language": "en", "original_title": "The Godfather", "overview": "Baseado no best-seller de Mário Puzo, o filme acompanha o percurso de Don Vito Corleone, o patriarca de uma das mais notáveis e importantes famílias da máfia italiana de Nova Iorque.", "popularity": 152.285, "poster_path": "/oJagOzBu9Rdd9BrciseCm3U3MCU.jpg", "release_date": "1972-03-14", "title": "O Padrinho"

Seems to be working now for me.

I can confirm it's back to normal. Strange.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login