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

Ignore specific options from configuration file #11615

Closed
Tony-il-Capo opened this issue Jan 5, 2017 · 3 comments
Closed

Ignore specific options from configuration file #11615

Tony-il-Capo opened this issue Jan 5, 2017 · 3 comments

Comments

@Tony-il-Capo
Copy link

@Tony-il-Capo Tony-il-Capo commented Jan 5, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.01.05. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.01.05

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Hi there
Is there a way to ignore specific options from config file? Like, if the options are present on command line, the same options on configuration file are ignored.

I make use of configuration file because I use proxy and custom downloader options, if not, is hard to write them every time.
I read here about having multiple config files, but don't seems implemented.

Anyway, it's something that shouldn't take much priority nor time.

Btw, youtube-dl runs great on my OpenWrt router (WR1043NDv2), Rpi 3 and Linux STB (Vu+ Duo2), thanks so much for this awesome tool.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 5, 2017

Like, if the options are present on command line, the same options on configuration file are ignored.

Options passed on command line override the same options from configuration file.

I read here about having multiple config files, but don't seems implemented.

Wrong, it's implemented: --config-location.

@dstftw dstftw closed this Jan 5, 2017
@Tony-il-Capo
Copy link
Author

@Tony-il-Capo Tony-il-Capo commented Jan 5, 2017

Thanks, I tested this before and somehow it was not working, it would still use options from configuration file. I need to check this again.

Could this info be clarified on readme page?
I only find this

You can use --ignore-config if you want to disable the configuration file for a particular youtube-dl run.

Thanks again and sorry about this.

dstftw added a commit that referenced this issue Jan 5, 2017
@heikoherold
Copy link

@heikoherold heikoherold commented Sep 14, 2018

Like, if the options are present on command line, the same options on configuration file are ignored.

Options passed on command line override the same options from configuration file.

What about options with mandatory arguments, where we want to override to the default?

E. g. config file contains --recode-video mkv but we don't want to recode for this execution.
Just adding --recode-video generates an error youtube-dl: error: invalid video recode format specified.

Note: selecting another config file is far less useful because you need to copy the standard config file and edit it.

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.