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

Feature Request - Add a optional configuration parameter to run custom script when sync is completed. #142

Closed
earthslasthope opened this issue Nov 10, 2020 · 6 comments · Fixed by #147

Comments

@earthslasthope
Copy link

It would be nice if I could configure FTPGrab to run custom bash script or command upon sync completion. An example of something I would like to do is unrar a archive file. Just suggesting this as a new feature.

@smozely
Copy link

smozely commented Nov 10, 2020

Hopefully adding more than a just a +1 to this ... detailing my use case

I'm using rednoah/filebot the watcher image, which isn't perfect at detecting when files are complete ... it waits for a single file to not have been changed for 5 minutes. But when it runs it looks at all files in a directory ... so thats caught me with it processing files that are still being downloaded by ftpgrab, when I've been downloading a bunch of files at once.

Using a script, I'd download files to a temp folder, and then move them once completed ... this would also potentially close #76 and #57 (the third in their list) as well.

... This could be solved in other ways. Filebot also supports excluding files, intention being you add a suffix to files while downloading, and then rename them once finished. But I think the ability to run a script would be enough

@earthslasthope
Copy link
Author

Thanks for letting me know about this rednoah/filebot image. Definitely a workaround for us but it would still be ideal IMO to have the completed sync handling feature directly in FTPGrab :)

@smozely
Copy link

smozely commented Nov 11, 2020

Oh, I'm not saying this works 100% for me ... I would still like something in FTPGrab to help make it robust as well.

@crazy-max
Copy link
Owner

@tthordarson Yes this is possible through a new notification handler I can introduce.

@crazy-max
Copy link
Owner

@tthordarson @smozely #147

@crazy-max
Copy link
Owner

crazy-max commented Nov 29, 2020

@tthordarson @smozely To use the script notification with FTPGrab 7.2.0 see https://crazymax.dev/ftpgrab/config/notif/script/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants