-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Media content may be improperly imported into Ombi #4472
Comments
Hi! |
I think the first proposed solution is what we should go with: I think having to do a diff on each item is going to be a real pain to do and track. If the user has had a large restructure of their libraries then they should do a clear and re-sync. But yeah good ideas here 👍 |
This is not tested and I haven't looked into every case, but can't we just compare existingMovie with movieInfo here: Ombi/src/Ombi.Schedule/Jobs/Emby/EmbyContentSync.cs Lines 245 to 248 in ad677fa
and if they're not similar, update instead of adding? We already fetch the content details so a simple comparison should do the trick. Anyway this can be done in two steps, so I'll work on a PR for the first task. Depending on your answer, I may take try something out for the second task and we'll see how it goes. |
Actually yes I guess so. Just had a quick look at the Plex Sync too and you are right it shouldn't be that bad, I thought it would be a lot worse! |
I suggest to implement my first suggestion (PR incoming) and close this issue. We can open a new issue for the second suggestion, which should fix the issue being that Ombi doesn't update its cache when the media identification is changed on the media server. |
Fixes Media content may be improperly imported into Ombi Ombi-app#4472
* Add sanity checks upon media server sync Fixes Media content may be improperly imported into Ombi #4472 * Fix Jellyfin sync * Refactor Emby and Jellyfin provider ids * Use new method Any * Fix log formatting
Describe the bug

If Ombi fetches content from a media server when it isn't done fetching the metadata, it will save the content in the database in an incorrect state:
Upon the next sync, Ombi considers the content as already added so it won't try to update its information. This ends up in content that can never be marked as available unless you manually run a "Clear data and resync" in Ombi settings.
This causes other issues in another context: if the media was first scanned incorrectly by the media server and you manually correct the identification, Ombi will keep the incorrect state in the database.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ombi should update the media information if it detects a difference.
Proposed solution
Ombi Version (please complete the following information):
Trying to get some feedback before working on a PR.
The text was updated successfully, but these errors were encountered: