madslundt / cloud-media-scripts

Upload and stream media from the cloud with or without encryption. Cache all new and recently streamed media locally to access quickly and reduce API calls
MIT License
89 stars 11 forks source link

Empty plex trash #29

Closed madslundt closed 6 years ago

Antexa commented 6 years ago

What are the advantages of this modification ?

madslundt commented 6 years ago

I prefer to not have Plex empty trash after a scan, in case the mounts go down it will remove all my media. That means I'll have to scan all files again, and that can take some time depending on your library size.

With this script it makes sure to empty trash on Plex only when mount is confirmed running.