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
I've added a
max_downloads
function to theYoutubeDl
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