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.
Progress for --dump-json #5400
Progress for --dump-json #5400
Comments
|
This would require tweaking each extractor capable to process channel/playlist. Moreover it's not always possible to know the size of a playlist beforehand to calculate an upper bound. |
|
Generally i think what would be beneficial would be if there was an option to stream the progress bar as json. This could be done in a way that you can easily do this without a streaming parser: [{"percent": 0.1, "eta": 600, "speed": 64839}
,{"percent": 1.3, "eta": 595, "speed": 192624}
...
]To parse, split by line and remove the first char or dump it into a streaming parser. This would allow easier interaction from other programs with youtube-dl |
|
@dstftw Any news / plans regarding this issue? |
|
Neither. |
|
@dstftw I'm interesting in this feature and would like to contribute. I think it would be nice to add $ youtube-dl --dump-progress-json <URL>
{ "status": "downloading", "downloaded_bytes": 1024, "total_bytes": 12345, ... }
{ "status": "downloading", "downloaded_bytes": 8192, "total_bytes": 12345, ... }
{ "status": "finished", "downloaded_bytes": 12345, "total_bytes": 12345, ... }(JSON entries are the same as those passed to progress_hooks) Is it okay? |
|
No, progress hook is for file downloading only. Also such progress reporting for JSON is useless since it does not reflect the actual traffic. |
Would it be possible to add a progress bar when fetching the data for a channel- or a playlist-json-dump (--dump-json)?