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.
Display currently downloaded video length #6567
Comments
|
|
Sometimes knowing how many KB or % of video has been downloaded just isn't enough, and you want to preview the video to check it's working, the right topic, the correct language, etc. So you open the .part file with a video player, and skip through the video till you find a dialog or something. If you skip too far away, the player will get stuck at the end or stop or do something weird, which isn't too nice.
It would be nice if youtube-dl displayed the length of the downloaded video, something like
The info of the total video length can be obtained through the
%(duration)sparameter (when available), and the current downloaded length can be approximated using a simple rule of three.Problem with this idea is that the
durationparameter doesn't seem to get passed to the[download]routines at all, so this would probably involve modifying a bunch of protocols and modules indownloader/; maybe it's not trivial to do.