youtube-dl-server icon indicating copy to clipboard operation
youtube-dl-server copied to clipboard

Default Config

Open twist3dimages opened this issue 3 years ago • 3 comments
trafficstars

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?

twist3dimages avatar Aug 23 '22 16:08 twist3dimages

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 avatar Aug 24 '22 03:08 manbearwiz

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.

manbearwiz avatar Aug 24 '22 05:08 manbearwiz

Thanks!

twist3dimages avatar Sep 04 '22 19:09 twist3dimages