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 - Filter commands by site #13648

Closed
sirylj opened this issue Jul 14, 2017 · 2 comments
Closed

Feature request - Filter commands by site #13648

sirylj opened this issue Jul 14, 2017 · 2 comments
Labels

Comments

@sirylj
Copy link

@sirylj sirylj commented Jul 14, 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.07.09. 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.07.09

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

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 template

would run any commands that come after it only if the site being used is youtube.com.

Multiple --match-site commands could be used to make templates for different sites (e.g. different --output commands for youtube.com and vimeo.com, etc.).

--match-site unlisted

would apply commands to sites not specifically listed by --match-site.

Support for any url structure.

Or add the same support options to --match-filter

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 14, 2017

This is not how it's work. Explicit match site option does not make any sense since it's already filtered by input URL.

@dstftw dstftw closed this Jul 14, 2017
@dstftw dstftw added the invalid label Jul 14, 2017
@sirylj
Copy link
Author

@sirylj sirylj commented Jul 17, 2017

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.

@sirylj sirylj mentioned this issue Jul 21, 2017
4 of 8 tasks complete
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
2 participants
You can’t perform that action at this time.