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.
Ability to pass a text file with keywords to the ytsearchall/ytsearchdateall flags #24356
Comments
|
I've already pointed out: use batch file. If you don't want to prefix each with search extractor prefix use also |
|
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! |
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.
--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:
or
"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 -
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.