I have a somewhat newbie question. Can you please confirm that ids for movies do not change, essentially a primary key? So whilst all other data for a given resource might change, original title etc. the id is a unique and persistent identifier and does not get assigned to another resource of the same type?
Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.
Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;
Δεν είσαι μέλος;
Απάντηση από τον/την Travis Bell
στις 10 Ιούλιος 2017 στις 02:38 ΜΜ
Movie ids do not ever change nor are deleted ids reused. IDs are also only unique within their own namespace meaning there can be an id 1499 in both movies and TV shows.
As a point of reference for our ids, you can grab the daily ID exports which contain all of the valid ids.
Cheers.
Απάντηση από τον/την mathewtrivett
στις 10 Ιούλιος 2017 στις 03:18 ΜΜ
Perfect. Thanks for the quick response and yes I'm working with the daily exports.
Απάντηση από τον/την Travis Bell
στις 10 Ιούλιος 2017 στις 03:20 ΜΜ
Απάντηση από τον/την kristenkotkas
στις 16 Νοέμβριος 2017 στις 05:35 ΜΜ
I have a problem. Like the id didn't change, but as it seems, the movie was removed and new item appeared. To be specific, there was movie with the id "475105" and the title "Hans Zimmer: Live in Prague". Now this "is changed" to id "435011" and title "Hans Zimmer Live in Prague". Notice, that the colon from the title is missing. And now, this url https://www.themoviedb.org/movie/475105-hans-zimmer-live-in-prague gives 404. For me it seems as the id was changed, or what can be the issue with that?
Απάντηση από τον/την Travis Bell
στις 16 Νοέμβριος 2017 στις 06:04 ΜΜ
We have duplicates that are added and removed all the time.
475105
looks like it was a duplicate that was removed.Απάντηση από τον/την kristenkotkas
στις 16 Νοέμβριος 2017 στις 06:35 ΜΜ
Thanks for the quick reply. I then take that into account for future development.
Απάντηση από τον/την hjone72
στις 30 Ιανουάριος 2020 στις 06:06 ΜΜ
Hi, I've just stumbled across this problem. With a movie: D-Day (612831) & (609670). Is there anyway of identifying the movies that are removed? Or would it be possible to create a 302 redirect or pointer to the new movie?
I've just been scratching my head over an issue where a script I was running was crashing out, definitely my poor coding , because the movie couldn't be found. I've updated the ID of that movie now and I'm expecting it will all just work.
Cheers
Απάντηση από τον/την POOKER
στις 11 Φεβρουάριος 2023 στις 03:31 ΜΜ
It appears there is a section in the Documentation called 'changes' - (API-Changes. I'm sure this can be checked before running scripts
Απάντηση από τον/την ticao2 🇧🇷 pt-BR
στις 11 Φεβρουάριος 2023 στις 09:04 ΜΜ
I think it might be better to get the list of valid IDs.
Daily the list is exported.
https://developers.themoviedb.org/3/getting-started/daily-file-exports