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