-
-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Availability sync fails to correctly identify removed media items #3708
Comments
I have a working implementation (very small PR) for fixing this for movies. Will expand tomorrow to include TV shows as well. |
Can you give me a case when the externalServiceId will not match the correct media item? If the id does not match, the Radarr/Sonarr scanner should update the id to the correct one. |
What I can confidently say is that my current Overseer & Radarr configs, have numerous instances of this issue. That's how I was able to debug it: by pointing my dev environment to my own "prod" Overseer config, and then trying to see why availability sync was not working as intended. If I had to try and reconstruct how I got in this situation, I believe it went as follows: I used to have 2 instances of Radarr connected to Overseer. That was a few years ago. Eventually, I deleted one of those instances and all of its content, but the Overseer instance and its database has remained the same over the years. This was well before availability sync was introduced. I am now in a situation where I can clearly see that for Overseerr pulls movie A from its database, and goes out to Radarr with Two quick thoughts:
|
Hmm, I think there was a reason in the original development that we moved from the tmdbId. But I don't think it should be an issue now hopefully. We can definitely try it though and see how it goes. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
This report is the level-down of the issue that I originally reported here: #3219 (comment)
What seems to be happening is that Overseerr stores an
externalServiceId
as part of the media metadata, which presumably is the id of that movie in Radarr/Sonarr at the time that the entry was created. That id is subsequently used during availability sync to get the availability status of that item.This is however problematic, as the ids assigned by Radarr/Sonarr are not stable. In other words, id 0 can be a different media entry in 2 separate instances of each app. The current implementation of Overseerr assumes that
externalServiceId
will always point to the media it was originally assigned to. Which in turns means that when Overseerr checks for the availability of a specific media item usingexternalServiceId
, it is possible that the response does not correspond to the intended media item.There is an easy way around this problem as the v3 API allows querying for movies by tmdbId and TV series by tvdbId. Which means there is no reason to rely on the error-prone
externalServiceId
.Version
1.33.2
Steps to Reproduce
(similar for Sonarr)
Screenshots
No response
Logs
No response
Platform
desktop
Device
Macbook Pro 14
Operating System
Sonoma 14.1.2
Browser
Chrome
Additional Context
Code of Conduct
The text was updated successfully, but these errors were encountered: