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

Ability to pass a text file with keywords to the ytsearchall/ytsearchdateall flags #24356

Closed
kolt54321 opened this issue Mar 15, 2020 · 2 comments
Closed
Labels

Comments

@kolt54321
Copy link

@kolt54321 kolt54321 commented Mar 15, 2020

  • I'm reporting a feature request

  • I've verified that I'm running youtube-dl version 2020.03.08

  • I've searched the bugtracker for similar feature requests including closed ones

  • I have read the FAQ - thoroughly

Description

@dstftw , I am sorry, but please, I would appreciate if you leave the request open long enough so I can clarify if it is not understood. The answer you wrote before closing did not answer the request, unfortunately.

  • I am aware of -a, or --batch-file
  • I have read the FAQ carefully, and am aware of the options presented there.

--batch-file points to a text file, and allows the user to write specific urls to download there. ytsearch, an "arbitrary string search query" as you explained, can allow youtube searches to take place, and youtube-dl to perform actions on the result. For example:

  • ytsearchall:Piano
    or
  • ytsearchdate900:Dance

"Piano" and "Dance" are what I refer to as keywords - paste them after the ytsearch, and it allows a search query to be performed for them.

I am asking if it is possible to use a list of search queries to be passed to ytsearch, similar to how --batch-file allows a list of URL's. Here is what an example of the list would look like -

  • piano
  • Dance
  • Kowloon city
  • laser beam

Notice that these are not URL's, and as such will not work with --batch-file. The goal is for youtube-dl to iterate through the list of keywords, performing a search for each of them. To first add ytsearch:piano, then, after those results are done, ytsearch:Dance, and so forth.

@kolt54321 kolt54321 added the request label Mar 15, 2020
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 15, 2020

I've already pointed out: use batch file. If you don't want to prefix each with search extractor prefix use also --default-search.

@dstftw dstftw closed this Mar 15, 2020
@kolt54321
Copy link
Author

@kolt54321 kolt54321 commented Mar 15, 2020

I am sorry - I see what you mean now, thank you. I wasn't aware that batch file can take anything other than URL's. Thanks for your help!

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.