Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: emptying the Plex trash #52

Closed
camjac251 opened this issue Oct 26, 2020 · 1 comment
Closed

feat: emptying the Plex trash #52

camjac251 opened this issue Oct 26, 2020 · 1 comment
Labels
feature A new feature! :D targets Specifically targets one or multiple target modules wontfix This will not be worked on

Comments

@camjac251
Copy link

I have the Empty trash automatically after every scan on my Plex install disabled because my mount often crashes and starts again automatically and if everything is detected as missing then it could wipe my entire library after it's all deleted.

Could a function be added to autoscan for managing the Plex emptyTrash function? Like it could run only if the threshold of missing/unavailable files is below a certain number?

@m-rots m-rots added feature A new feature! :D targets Specifically targets one or multiple target modules wontfix This will not be worked on labels Oct 28, 2020
@m-rots
Copy link
Collaborator

m-rots commented Oct 28, 2020

As I mentioned in this issue, Plex changed its behaviour between the CLI scanner and the API request. The CLI scanner used to immediately scan the given path and provide the results afterwards (great!). However, the API queues our scan request (queuing also means Autoscan will not get the result of the scan itself) and executes the scan whenever it sees fit. Could be a couple of seconds, could be hours, we don't know (absolutely terrible!).

Unfortunately, the only choice Plex gives us in that regard is using its web socket which publishes real-time events on what Plex is doing. However, these events do not include: 1. the library nor 2. the full path. Therefore it's just a wild guess as to what Plex is scanning.

I have discussed this internally with @l3uddz but our conclusion was that such a feature / tool would be too inefficient to be created and integrated into Autoscan. Unless Plex changes its web socket events or its queuing behaviour, this feature will not see the light of day.

Note: we will not offer a Scanner CLI function either as this is slowly becoming deprecated and is barely supporting the new movie agent.

@m-rots m-rots closed this as completed Oct 28, 2020
@m-rots m-rots changed the title Managing Plex Empty Trash feat: emptying the Plex trash Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature! :D targets Specifically targets one or multiple target modules wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants