Playlist size trim

This commit is contained in:
Salastil
2023-08-27 03:24:01 -04:00
parent 0847e59a4c
commit 9e6481ddd9

View File

@@ -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