Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.06.05. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
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".