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
396 stars 70 forks source link

FEATURE: Delete from Plex when Google Drive Monitor Sees Deletion #102

Open m1lkman opened 5 years ago

m1lkman commented 5 years ago

This is a fringe issue. I talked it over with @desimaniac but I wanted to talk it through here.

Here's my setup: I'm not using Cloudbox yet and just using PAS standalone on multiple plex instances in a mediabox type configuration with another feederbox bringing everything into gdrive.

Issue When I delete things from Sonarr/Radarr/Plex/etc on my feederbox, on my other instances PAS sees the deletions from gdrive but currently ignores them leaving Plex with "unavailable" media.

Idea Would it make any sense to build in some additional logic into Google Drive Monitoring to do one of two things when file deletions are seen on gdrive?

  1. Directly initiate a delete from Plex to completely remove the metadata item from Plex. or
  2. Have Plex Media Scanner scan the removed path and it will eventually be deleted when the trash is emptied.

Again I realize this probably isn't a big issue for many. I've been playing around with code to do either of the above but wanted to get some feedback from other smarter people. Thanks.

desimaniac commented 4 years ago

It's a good idea.

edrock200 commented 4 years ago

Isn't that what the "empty trash" function does?

desimaniac commented 4 years ago

He’s wanting a trigger - deleting in Google Drive -> triggers scan of the affected path, so that Plex can be told that it’s not available anymore.