Cloudbox / autoscan

Autoscan replaces the default Plex and Emby behaviour for picking up changes on the file system.
MIT License
613 stars 55 forks source link

File upgrades incorrectly parsed as newly added files in Plex #59

Closed vveerar1 closed 2 years ago

vveerar1 commented 3 years ago

Firstly, thank you so much for the awesome app. It works so well as it uses less processing by scanning only the updated folder.

To stop plex from adding a movie to recently added movies when upgraded, I added Radarr's recycle bin folder as a media source for plex. So that when Radarr upgrades a movie, the existing movie file will be moved to the recycle bin and plex will consider the file was moved to a different location.

With this setup, plex will retain the metadata and will not show as a newly added movie on the home page and once radarr clears the recycle bin, only the latest version of the movie will be on plex.

Is there a way to add a default/manual directory (RecycleBin folder) that will be scanned as well every time the plex was triggered to initiate a scan? or to send the recycle bin directory along with the movie directory to plex?

Thanks in advance

m-rots commented 3 years ago

I certainly appreciate your time trying to look for a work around / fix for this issue. Ever since swapping to the Plex API instead of the Plex Scanner CLI we too have noticed the issue that Plex incorrectly recognises file upgrades.

Unfortunately, I do not think the issue is caused by Autoscan but rather by Plex. I would suggest you to open an issue on their forums that while using the <url>/library/sections/<section id>/refresh?path=<path> url, as they suggest at the bottom of their URL commands page, file upgrades are handled incorrectly and instead parsed as new additions.

With this in mind, I will not be working on your feature request as I think this specific issue is the only use-case for it. Please do let me know whether you hear from Plex. I will keep this issue open in the meanwhile.

l3uddz commented 3 years ago

Use the new movie agent in Plex, this should not be an issue with it (upgrades showing as newly added).

mbyte commented 3 years ago

Use the new movie agent in Plex, this should not be an issue with it (upgrades showing as newly added).

Im using the new agent, still having the same issue

mvanbaak commented 3 years ago

I just doublechecked, and upgrades are not showing up as newly added on my plex. Using the new movie agent.

Today radarr upgrade 3 movies, and they are not in my 'recently added movies' list in plex. If I go to the movies and check info to see what files it has, it shows the upgraded files there, so plex did update it's database.

m-rots commented 2 years ago

This does not appear to be an issue we can fix by changing code within Autoscan.