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

Scan on Show/Movie/File Delete #166

Closed hwwilliams closed 3 years ago

hwwilliams commented 3 years ago

Describe the problem For Sonarr, if the 'On Series Delete' trigger is enabled Autoscan will show an error in the logs for 'Unknown scan request' instead of having Plex update that location and remove the show from Plex with a trash request.

For Sonarr, if the 'On Episode File Delete' trigger is enabled Autoscan will still do a file exists check and eventually fail to send the scan request since it can't find the file.

For Radarr, if the 'On Movie Delete' trigger is enabled Autoscan will show an error in the logs for 'Unknown scan request' instead of having Plex update that location and remove the movie from Plex with a trash request.

For Radarr, if the 'On Movie File Delete' trigger is enabled Autoscan will still do a file exists check and eventually fail to send the scan request since it can't find the file.

Describe any solutions you think might work For Sonarr and Radarr, the 'On Episode File Delete' and 'On Movie File Delete' triggers may not be as useful since that is usually followed up with a scan from a download, import, or upgrade trigger but in the off chance its not it'd be nice if the trash request goes through to clean Plex up and perhaps caching the trash request to see if a download, import, or upgrade request comes through for the same episode and then combining them.

For Sonarr and Radarr, the 'On Series Delete' and 'On Movie Delete' triggers I'd like to see Plex update that location and remove the show/movie from Plex with a trash request.