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

Pre/Post hook/task #45

Closed
camjac251 opened this issue Sep 25, 2020 · 3 comments
Closed

Pre/Post hook/task #45

camjac251 opened this issue Sep 25, 2020 · 3 comments
Labels
feature A new feature! :D wontfix This will not be worked on

Comments

@camjac251
Copy link

Would it be possible to support pre/post hooks/task that run with new scan requests? I have to run Plexarr often to fix matches that Plex couldn't find and doing it on a schedule (cron) is possible but I was hoping to run it as soon as the autoscan task finished.

@m-rots
Copy link
Collaborator

m-rots commented Oct 10, 2020

Unfortunately Plex and Emby do not tell Autoscan when they have actually scanned the path we specified them to scan. Instead, both Plex and Emby queue the request and we are simply told whether this queuing process was successful.

Some background info: We initially wanted to know whether scans were successful by using Plex's web socket. However, the events didn't include the path to the folder, so we had no way of knowing whether Plex and Autoscan were talking about the same event.

@m-rots m-rots closed this as completed Oct 10, 2020
@m-rots m-rots added the feature A new feature! :D label Oct 10, 2020
@camjac251
Copy link
Author

Could it still be possible to add a hook? Maybe with a delay that would be long enough for Plex/Emby to finish the scan? Like --posthook /path/to/plexarr.sh --posthook /path/to/other.sh --posthookwait 30s

@m-rots
Copy link
Collaborator

m-rots commented Oct 26, 2020

No. We have no idea when Plex/Emby finish the scan. If things are already queued up, it could take hours. The wait time varies too much.

@m-rots m-rots added the wontfix This will not be worked on label 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 wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants