jellyfin / TMDbLib

C#.Net library for TheMovieDB
MIT License
358 stars 135 forks source link

Merged ID detection #303

Open rpm61 opened 5 years ago

rpm61 commented 5 years ago

I am hoping that TMDb is providing information on Id's that have been merged. I have found that in some cases at least, an Id may return a 404 from the API, and also from the site with an "oops" page, but that the program may not necessarily be deleted and instead may have been merged into another Id. This is not uncommon especially in the case of duplicate record merges, but TMDb does not redirect the old page to the new one and I am looking for a way to determine this circumstance programmatically. At this point I don't believe the changes API is even indicating deletions. Is this information available somewhere that I am missing?

LordMike commented 5 years ago

The Changes API should indicate deletions. I saw that referenced somewhere recently.

As for getting a list of "old id's" for any object, you'll probably have to put forward a feature request on TMDb's forums. If they make that, we'll make a corresponding API update here.

rpm61 commented 5 years ago

OK thank you, I'll put the feature request in and let you know if it happens.

LordMike commented 5 years ago

Great :)

Hadn't thought about id's merging, so it'll probably be good for those syncing up with their own DB's.

rpm61 commented 5 years ago

Request in.

https://www.themoviedb.org/talk/5c657bd90e0a267dfd9c044f

LordMike commented 5 years ago

Leaving this open so we can track it.

rpm61 commented 5 years ago

The request was updated Friday and a ticket created for merged ID tracking which you can vote on here.

The reply also states that deleted Id's are returned by the changes endpoint with the Adult field set to null. Another ticket here is in place for a daily export of deleted Id's.