Jeeaaasus / youtube-dl

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

Option to disable youtubedl_interval #77

Closed labmonkey closed 1 year ago

labmonkey commented 1 year ago

Hello. It would be great to be able to set youtubedl_interval=false or similar so that the container is just run once (for example with docker run) instead of waiting in a loop.

orenmazor commented 1 year ago

I basically do this by using this docker image, but running it with my own command. this bypasses the sleep interval

Jeeaaasus commented 1 year ago

Running your own command will override /init and the whole s6 process and everything no?

I would want to implement this by telling s6-overlay to shutdown the container instead of restarting the main script, But I don't know enough to know how to accomplish that..

orenmazor commented 1 year ago

yup. thats the idea. I dont need any of that stuff. I just want the pre-baked image with all the converters in place, but I want to run this as a cronjob in my cluster, not as a long-lived service

Jeeaaasus commented 1 year ago

Hey guys, just updated :latest. You can now do env: youtubedl_interval=false and the container will exit after executing instead of sleeping and re-running. (598ab20) If you try it out maybe let me know how it went! I'll document the feature at a later date.