ytarchive icon indicating copy to clipboard operation
ytarchive copied to clipboard

execute command after download finished

Open Lytexx opened this issue 4 years ago • 4 comments

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

Lytexx avatar Nov 10 '21 00:11 Lytexx

can't you just use command && othercommand?

TheTechRobo avatar Nov 10 '21 00:11 TheTechRobo

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.

Kethsar avatar Nov 10 '21 00:11 Kethsar

+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.

harupong avatar Nov 25 '21 03:11 harupong

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

CanOfSocks avatar Mar 07 '22 06:03 CanOfSocks