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.
Make Usage in Scripts Easy | Pipe friendly for scipt integrations #1899
Comments
|
If the program you're writing is nontrivial, you should consider writing it in Python and using youtube-dl as a library. In any case, you can pipe in commands via |
|
Only trouble is I am on windows. Any way with command line arguments you cannot do run as a command loop. What I have been thinking about is to get a set of CMD files to replicate some of the interesting features in GUI clients. |
|
As I wrote above, this is probably better solved in a "real" programming language. I am not sure why you would want to load a number of arguments dynamically from a file in the first place. As I wrote in my email, it would be very helpful to have context here. |
|
I am looking to do this interactively in some cases.
|
|
Sounds like you should really do this in a real programming language where you have full control. |
Since YDL is a command line tool YDL can ideally used in scripts. So it might be helpful to make YDL more friendly to be used in scripts.
The usage can be in batch files, power shell files, shell scripts, etc.
This can be achieved by:
To achieve 1 ability to pipe in commands similar to command line option but through stdin. If multiple lines are present it is same as executing YDL multiple times with the different options.
To achieve 2 give ability to have a settings file(s) specified at command line. If multiple lines are present it is same as executing YDL multiple times with the different options.
To achieve 3 is simple. Specify the file in 4 to console.
To achieve 4 implement.
#1896
#1897