go-ytdlp
go-ytdlp copied to clipboard
feature: download progress tracking
✨ Describe the feature you'd like
Progress hook function, which both applies the necessary CLI flags to yt-dlp to track progress, and allows providing a callback to receive progress updates.
- ref: https://github.com/lrstanley/go-ytdlp/pull/16#issuecomment-2235253599
- ref: https://github.com/eos175/go-ytdlp/commit/8eb98f3a3b4af4d47306589303402654cd00c859#diff-4d7d1923693fc5ce892add2ea2907a744e77ea0b50c1939ccc5067cb48a466a3
Would like to ensure:
- It uses the builder approach
- Uses callback approach
- Does not prevent json output
- Tracks:
- bytes downloaded
- total bytes
- progress status
- low priority: speed
- low priority: ETA
We could calculate some of the info ourselves (speed, ETA).
🌧 Is your feature request related to a problem?
No response
🔎 Describe alternatives you've considered
n/a
⚠ If implemented, do you think this feature will be a breaking change to users?
No
⚙ Additional context
No response
🤝 Requirements
- [X] I have confirmed that someone else has not submitted a similar feature request.
- [X] If implemented, I believe this feature will help others, in addition to solving my problems.
- [X] I have looked into alternative solutions to the best of my ability.
- [X] (optional) I would be willing to contribute to testing this feature if implemented, or making a PR to implement this functionality.