Post-Completed Download Handling user scripts

Is there any concept of user scripts that can run when CDH has finished moving episodes around?

My use case: I have NZBGet running alongside NZBDrone and Drone is using CDH (which works great!). When Drone has picked up the completed download and moved it to its new home, I’d love to be able to leave a symlink behind in the original download directory as a collection of “new episodes” for the devices on my network to browse.

With Sickbeard, I had a post-process script in NZBGet that would fire off to Sickbeard, read the response, and create a symlink to wherever Sickbeard moved the file to. I then have a daily cron job that removes week-old symlinks in the incoming directory.

Is anything like this possible? Alternatively, I am very comfortable editing C# code if someone could point me in the right direction. I see all of the interfaces and new-download movers and etc. in the code and get a bit lost as to where exactly I’d want to hook into a “the episode has finished moving successfully from path X to path Y”.

Thanks for your time and for providing such great software for free!

Not currently, but its already on Trello: https://trello.com/c/mCJyYeZl/122-custom-notifications-similar-to-sab-post-processing-scripts

We already have events triggered when episodes are imported, which notifications listen to, but we haven’t tackled custom notifications, but the actual implementation is going to take some effort, we want to be able to capture the output of the script and log it (much like SAB does, possibly Get as well).

As to where to start, you’d want to listen for the EpisodeImportedEvent, but beyond that, I’m not sure.

Thanks a bunch for the reply @markus101! I’ll keep an eye on the Trello card and look into the event you mentioned.