Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Config #108

Open
twist3dimages opened this issue Aug 23, 2022 · 3 comments
Open

Default Config #108

twist3dimages opened this issue Aug 23, 2022 · 3 comments

Comments

@twist3dimages
Copy link

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants