From b1d3c252b8310b982b3b4780fb8374be7fd8ca11 Mon Sep 17 00:00:00 2001 From: emma Date: Wed, 15 Nov 2023 11:38:21 -0700 Subject: [PATCH] fixed music downloading --- yt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt b/yt index 898238b..f743c44 100755 --- a/yt +++ b/yt @@ -76,7 +76,7 @@ lines() { } music() { # downloads a video, splitting by chapter and only saving the audio - while "$1"; do + while test -n "$1"; do yt-dlp -vx --split-chapters -o \ "chapter:%(fulltitle)s - %(section_number)s %(section_title)s.%(ext)s" \ "$1" --audio-quality 0 >> log 2>&1