diff --git a/yt b/yt index 8b960b9..09ccc48 100755 --- a/yt +++ b/yt @@ -90,8 +90,8 @@ cache() { # cache the video title for faster retrieval clone() { # clones a YouTube playlist to a file test -d "$YT_PL_DIR" || mkdir -p "$YT_PL_DIR" - if test -n "$2" && file="$2" \ - || file="$YT_PL_DIR/$('%(playlist)s' "$1").m3u" + test -n "$2" && file="$2" \ + || file="$YT_PL_DIR/$(yt-dlp -s -I '1:1' --print '%(playlist)s' "$1").m3u" yt-dlp --flat-playlist "$1" --print url > "$file" verify "$file"