BKSalman / ytdlp-gui

a GUI for ytdlp written in Rust
GNU General Public License v3.0
222 stars 10 forks source link

Improve yt-dlp parsing #18

Closed BKSalman closed 10 months ago

BKSalman commented 11 months ago

my lazy ass didn't read the README of yt-dlp and I just found out that you can make parsing the output of it much better:

yt-dlp makes the best effort to be a good command-line program, and thus should be callable from any programming language.

Your program should avoid parsing the normal stdout since they may change in future versions. Instead they should use options such as -J, --print, --progress-template, --exec etc to create console output that you can reliably reproduce and parse.

so I will make use of this feature to improve the output of the download progress in ytdlp-gui

I'm currently updating iced to 0.10.0 and the text rendering in it is broken, so I might just separate updating iced and refactoring yt-dlp parsing to different PRs