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.
[REQUEST] A personalized stdout of progress #9639
Comments
|
There is a mechanism to reach progress data via progress hooks available from python code https://github.com/rg3/youtube-dl#embedding-youtube-dl. You can write a wrapper script in python that will translate it in any format you like. Is that enough? |
|
Well since I'm not using python, I cannot make any wrapper python based. I'm using nodejs to invoke a child process that call youtube-dl. So I pick up the output and I parse it, at the moment with a regular expression, but I would pass as command line argument to youtube-dl some option to format the output to just pick up it and don't make any kind of regular expression. For example, in the blikd command you can choose what data you want to show and in which format. |
|
Could you give more details, for example how to specify the format and what the output should look like? For me such a feature sounds highly application-specific but not for generic uses, so youtube-dl may not implement it. Writing a Python wrapper is never difficult. Feel free to ask questions if something goes wrong. |
|
Well actually there's a -o option to format the final file downloaded which hace many predefined values such %(id), %(title), %(ext), etc... So what I say is specify, say -O or --output or -stdout, whatever you want, a template format to style the output, selecting a specified variables like %(download_speed), %(eta), %(progress), anything else, for format the output, overriding the predefined which actually is showing [download] blablabla... One example could be: youtube-dl -O "%(download_speed) %(eta)" |
|
Came here to request the same feature as OP. I'm honestly surprised this hasn't gained any traction. Plenty of other applications (UI specifically) wrap |
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 2016.05.30.2. 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?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue required an account credentials please provide them or explain how one can obtain them.
Hi I'm using the youtube-dl as part of an other process and I searched if the command line has any option to print the output progress at a diserd format but, there's no one. So I'm wondering if it would be possible to add an option to choose a desired output format of process for get the % of downloaded, totalsize, downloading current speed, etc into personalized form to pass to any external program for parse just like making string.split(" ") to choose the desired column.
Thanks in advance