Default Config
twist3dimages opened this issue · 3 comments
twist3dimages commented
Hey,
I wanted to change the default output format to 'youtube-dl/%(id)s/%(title)s [%(id)s].%(ext)s' but I don't see any default config file. Would you be able to provide one?
manbearwiz commented
You can do that with the YDL_OUTPUT_TEMPLATE
env var. You can set it inline in your run command or in a docker-compose file.
YDL_OUTPUT_TEMPLATE='/youtube-dl/%(id)s/%(title)s [%(id)s].%(ext)s' python3 -m uvicorn youtube-dl-server:app --port 8123
manbearwiz commented
I added the ability to load it from a .env
file. Just put YDL_OUTPUT_TEMPLATE='/youtube-dl/%(id)s/%(title)s [%(id)s].%(ext)s'
in a file called .env
at the root of the project.
twist3dimages commented
Thanks!