youtube-dl-server
youtube-dl-server copied to clipboard
Default Config
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?
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
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.
Thanks!