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

Read Default Options from a File #1881

Closed
sirinath opened this issue Dec 3, 2013 · 5 comments
Closed

Read Default Options from a File #1881

sirinath opened this issue Dec 3, 2013 · 5 comments

Comments

@sirinath
Copy link

@sirinath sirinath commented Dec 3, 2013

Is it possible to add the ability to specify commonly used options in a file.

There can be a default file and also ability to specify another file.

@phihag
Copy link
Contributor

@phihag phihag commented Dec 3, 2013

youtube-dl already supports configuration files. The format is dead simple - just write the options you want into a text file. You can add system-wide configuration at /etc/youtube-dl.conf and user-specific configuration at ~/.config/youtube-dl.conf. If you want per-command configuration, it's generally simpler to create a shell alias than specifying a configuration file.

@phihag phihag closed this Dec 3, 2013
@sirinath
Copy link
Author

@sirinath sirinath commented Dec 3, 2013

How is this done in windows?

phihag added a commit that referenced this issue Dec 3, 2013
@phihag
Copy link
Contributor

@phihag phihag commented Dec 3, 2013

We used the same locations on Windows before, but I've just noticed that it is difficult to create these files due to limitations of the Windows UI. Since youtube-dl 2013.12.03, you can also use the simpler %APPDATA%\youtube-dl\config.txt or ~/youtube-dl.conf.

@HeavenArt
Copy link

@HeavenArt HeavenArt commented Sep 29, 2014

May I suggest that you display the "%APPDATA%\youtube-dl\config.txt" on the documentation page? Took me a while to find this information ;x

@phihag
Copy link
Contributor

@phihag phihag commented Sep 29, 2014

@HeavenArt Thanks for the comment (in the future, better open up a new issue, since comments can get lost when the issue has been closed already). I've updated the configuration documentation.

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.