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.
Add option to replace download progress overwrite (\r) with newline (\n) #254
Comments
|
Well, if you split by Therefore, I don't think an additional option is necessary; as the GUI can just replace |
|
That was what I did. I'm using Qt, so I made an intermediary "buffer" to process \r into \n. But thinking about command line usage, "tr" may do the trick. |
I want to use youtube-dl to download some video with a GUI. I've hoped that I could use the progress reported by youtube-dl to show a graphical progress bar in my GUI.
The problem is that parsing individual bytes is much harder than parsing lines of text. This is why I'd like a switch on youtube-dl to use \n instead of \r when reporting the downloaded status of the video so far.