I am building a movie website with TMDB's API. I’ve noticed that movies like The Hobbit and Captain America: Brave New World appear twice in the database. It seems like this could be an error, and I wanted to bring it to attention. I post it here beacuse I couldn't find a mail og something for bugs.
you can see it in e.g. https://api.themoviedb.org/3/discover/movie?api_key=KEY&language=en-US&page=1&with_genres=28 and https://api.themoviedb.org/3/discover/movie?api_key=KEY&language=en-US&page=2&with_genres=28
Не можете да откриете филм или сериал? Влезте, за да го създадете.
Искате ли да го оцените или добавите към списък?
Нямате профил?
Отговор от superboy97
на 20 март 2025 в 2:17 PM
The 2 "The Hobbit" links point to the same movie entry (you can see it by looking at the Id value). This is the same for the 2 "Captain America: Brave New World" links.
The fact that this happen is generally due to the cache that is present on the API requests. Your application should be aware that this can happen.