plex_autoscan icon indicating copy to clipboard operation
plex_autoscan copied to clipboard

FEATURE: Delete from Plex when Google Drive Monitor Sees Deletion

Open m1lkman opened this issue 5 years ago • 3 comments

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.

m1lkman avatar May 31 '19 21:05 m1lkman

It's a good idea.

desimaniac avatar Nov 04 '19 17:11 desimaniac

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

edrock200 avatar Jan 25 '20 19:01 edrock200

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.

desimaniac avatar Jan 26 '20 19:01 desimaniac