Jeeaaasus / youtube-dl

Automated yt-dlp Docker image
https://hub.docker.com/r/jeeaaasustest/youtube-dl/
MIT License
258 stars 33 forks source link

Add support for running custom post processing script #89

Closed batinicaz closed 1 year ago

batinicaz commented 1 year ago

I've bee running a custom script to cleanup directories of deleted videos periodically but figured it'd be useful to support running such a script automatically after each batch of downloads has finished.

Jeeaaasus commented 1 year ago

Hello @batinicaz :)

I like the idea, sounds useful. I have however left a couple of in-line comments.

After those changes I will update README to mention the feature.

batinicaz commented 1 year ago

I think this addresses the comments - https://github.com/Jeeaaasus/youtube-dl/compare/e391c00905cb662f5167c9d738c7560135a721f6..795999da4d4abe854ea28a6b908d87d022f14615

Let me know if you think further adjustments are needed and I'm happy to address them

Jeeaaasus commented 1 year ago

Thank you for caring enough to suggest improvements to my little hobby project!

Keep in mind that the changes will be built into the image unstable automatically but will only be included in the image latest along with the next yt-dlp release version.