Kethsar / ytarchive

Garbage Youtube livestream downloader
MIT License
1.08k stars 87 forks source link

execute command after download finished #62

Open Lytexx opened 2 years ago

Lytexx commented 2 years ago

like the --exec option from yt-dlp with a %(filepath)s format key, I would personally use it to automatically post my recordings but there a probably a lot of use cases for this

TheTechRobo commented 2 years ago

can't you just use command && othercommand?

Kethsar commented 2 years ago

Yeah I can consider a callback. @TheTechRobo a callback allows the user to think less about where the file was placed, what it got named to, etc. It can also allow me to give more info to what is being executed by creating environment variables the callback can check.

harupong commented 2 years ago

+1 for this.

It would be great if executing command when download starts is possible as well. I'm currently looping ytarchive --wait -r 60 with bash script, and I'd like to be notified when the downloading of a stream has started.

CanOfSocks commented 2 years ago

+1 for --exec Would love to use the --monitor-channel option and start my auto-move script in the single command