From 9e6481ddd940c74c8371940515eefabc89109211 Mon Sep 17 00:00:00 2001 From: Salastil Date: Sun, 27 Aug 2023 03:24:01 -0400 Subject: [PATCH] Playlist size trim --- src/actions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions.cpp b/src/actions.cpp index 3215a08b..bdfa2c6d 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -2791,7 +2791,7 @@ void AddYoutubeDLItem::run() // -f bestaudio/best: selects the best available audio-only stream, or // alternatively the best audio+video stream bp::ipstream output; - bp::child child_process(ydl_path, url, "-j", "-f", "bestaudio/best", bp::std_out > output, + bp::child child_process(ydl_path, url, "-j", "-f", "bestaudio/best", "--playlist-end", "100, bp::std_out > output, bp::std_err > bp::null); // extract the URL and metadata from a ptree object and add