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.
Feature request - Filter commands by site #13648
Comments
|
This is not how it's work. Explicit match site option does not make any sense since it's already filtered by input URL. |
|
It makes plenty of sense because there's a config file. Putting custom --output templates in the config file for different sites would make downloading videos a more streamlined process than having to change my --output configuration every time I download from a different url. |
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.07.09. 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?
Feature request - Filter commands by site
A command line option filter that runs commands based on the site being used. e.g.
--match-site youtube.com --output templatewould run any commands that come after it only if the site being used is youtube.com.
Multiple
--match-sitecommands could be used to make templates for different sites (e.g. different--outputcommands for youtube.com and vimeo.com, etc.).--match-site unlistedwould apply commands to sites not specifically listed by --match-site.
Support for any url structure.
Or add the same support options to
--match-filter