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

Feature request: Per-directory config options #13297

Open
keybounce opened this issue Jun 5, 2017 · 0 comments
Open

Feature request: Per-directory config options #13297

keybounce opened this issue Jun 5, 2017 · 0 comments

Comments

@keybounce
Copy link

@keybounce keybounce commented Jun 5, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

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

  • [x ] I've verified and I assure that I'm running youtube-dl 2017.06.05

Before submitting an issue make sure you have:

  • [ x] At least skimmed through README and most notably FAQ and BUGS sections
  • [ x] 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)
  • [x ] Feature request (request for a new functionality)
  • Question
  • Other

I'd like to have per-directory config options.

The usage case: Different directory contain downloads from different places. This directory contains The Big Bang Theory, that directory contains The Late Show with Steven Colbert, that directory contains stuff from Smithsonian, etc.

The problem: Different sources provide different meta-data. Some sources provide meaningful series, season, and episode data (so one download location can fetch everything from one list of shows); others don't provide meaningful series, but do provide season and episode (so it's one download location per show, and multiple lists of episodes); others (ahem, Smithsonian) do not provide any meaningful season / series / episode information.

The current solution: Having to specify a different -o option. Right now, I have a big ~/.config/youtube-dl/config file, and I need to edit which of the -o lines is commented out before I run yt-dl each time.

A slightly better current solution: Have a per-directory shell script wrapper, that exists to pass -o and/or -f and/or subtitles and/or ... options to different sources.

Note that while -o is currently the most common thing that I switch, occasionally there are subtitle issues (and right now I've switched to "do not delete subtitle files after converting and embedding", just so I can switch subtitle files when needed). So, yea, different sites, different desired subtitle formats.

Proposed:
Right now, there is a system wide config file, and a per-user config file. I'd like to see an option that can be put into the per-user (or system) config that specifies an additional config file, that can be a directory-relative config file.

There is a "Here is the location of a config file", but that is "replace the user's default", not "amend the user's default".

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
1 participant
You can’t perform that action at this time.