Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

progresshook with download timestamp while using youtube-dl #9192

Closed
ramadivyasri opened this issue Apr 14, 2016 · 3 comments
Closed

progresshook with download timestamp while using youtube-dl #9192

ramadivyasri opened this issue Apr 14, 2016 · 3 comments

Comments

@ramadivyasri
Copy link

@ramadivyasri ramadivyasri commented Apr 14, 2016

Hi, Is there any provision to print the download progress along with appropriate timestamp?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 14, 2016

Could you give your expected sample output?

@ramadivyasri
Copy link
Author

@ramadivyasri ramadivyasri commented Apr 14, 2016

[youtube] PMFHQXxqYOg: Downloading webpage
[youtube] PMFHQXxqYOg: Downloading video info webpage
[youtube] PMFHQXxqYOg: Extracting video information
[youtube] PMFHQXxqYOg: Downloading MPD manifest
[info] Writing video description metadata as JSON to: Minions - The Competition (2015) - Animated Short HD-PMFHQXxqYOg.info.json
[download] Destination: Minions - The Competition (2015) - Animated Short HD-
�[[download] 0.0% of 6.41MiB at 6.59KiB/s ETA 16:36
�[[download] 0.0% of 6.41MiB at 19.48KiB/s ETA 05:36 < EpcohTimeStamp>
[[download] 0.1% of 6.41MiB at 44.79KiB/s ETA 02:26 < EpcohTimeStamp>
�[[download] 0.2% of 6.41MiB at 94.66KiB/s ETA 01:09 < EpcohTimeStamp>
and so on....
I want to get the epoch time for each hook that is being generated and printed while download goes on. Can the dl print the progress hook with relevant timestamp?? If this feature does not exist, how can it be implemented??

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 14, 2016

This is not implemented. You can modify the function FileDownloader.report_progress so that it displays timestamps. I can't make the change in official youtube-dl as many third party applications parse these lines to for progress reporting and adding an extra field is likely to break them.

@yan12125 yan12125 closed this Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.