l3uddz / plex_autoscan

Script to assist sonarr/radarr with plex imports. Will only scan the folder that has been imported, instead of the whole library section.
GNU General Public License v3.0
397 stars 70 forks source link

Add upgrade priority to PAS #153

Open Iguana9999phil opened 3 years ago

Iguana9999phil commented 3 years ago

When sonarr / radarr upgrades a media file to a better quality it will remove the existing file on import of the new file. After that it sends a scan to PAS to scan it / add it to the queue. PAS knows it's an upgrade as that is what gets pushed with the json info from sonarr / radarr. Issue I have is when PAS is busy with multiple scans it will queue the upgrade on the end of it. This can lead to some unwanted time of the media file being unavailable.

Is it possible to prioritize and upgrade scan so it will be scanned before all normal scans in queue?

(Yes I know this is a niche request, I'm using PAS to auto add media and have automation running to do a scan of recently added media from the last couple of hours. This can add up to a lot of queue backlog hence the feature request)