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.
Print JSON and show progress #26596
Print JSON and show progress #26596
Comments
|
This will introduce ambiguity since both JSON and progress are written to stdout and it would be impossible to safely classify whether new line is JSON or progress data. |
Do you think there are any other approaches? I need this to automate some workflow, so there are no title bars in my case. What if we add a |
|
You can just embed it in python code and receive progress via a hook. |
|
Thanks for your quick replies! I'm using youtube-dl from a different programming language, and it will make things a bit harder I think. But anyway, thanks for the suggestion. I'll add a new comment if I come up with a good solution. Until then I'll just call youtube-dl twice: 1) to get a JSON and 2) to download a video. |
Checklist
Description
I would like to download a video and get the JSON with full info about it and see the progress within one
youtube-dlsession.There're these lines in
__init__.pythat prevent printing of progress:Probably a new option would help. There's
--no-progressoption, so maybe an enforcing option might help, something likeyoutube-dl --print-json --progess $url.