GyrosOfWar / youtube-dl-rs

A youtube-dl wrapper for Rust
132 stars 40 forks source link

Unable to add new flag to the YoutubeDl struct #25

Closed twiclo closed 2 years ago

twiclo commented 2 years ago

I've added a max_downloads function to the YoutubeDl struct. You can view the code here.

I logged out the command and I get this: "yt-dlp" "--flat-playlist" "--socket-timeout" "15" "--max-downloads" "1" "-J" "https://www.youtube.com/user/ArloStuff"

When running this directly in my terminal I get just one video returned but when ran through the crate it downloads every video for the channel

twiclo commented 2 years ago

After more testing it looks like yt-dlp itself is the problem. It ignores the max-download flag