From b18ff53a8e02ac24d4d97ea76b0a81db5d1dfd64 Mon Sep 17 00:00:00 2001 From: emma Date: Tue, 21 Nov 2023 14:39:28 -0700 Subject: [PATCH] fixed add --- yt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt b/yt index 5d48112..1016acf 100755 --- a/yt +++ b/yt @@ -38,7 +38,7 @@ add() { # adds a video to a playlist file while test -f "$YT_PL_DIR/$2.m3u"; do file="$YT_PL_DIR/$2.m3u" video="$(printf '%s\n' "$1" \ - | sed -e 's/youtu\.be\//www.youtube\.com\/watch?q=/g' -e 's/\?[^q].*$//g')" + | sed -e 's/youtu\.be\//www.youtube\.com\/watch?v=/g' -e 's/\?[^v].*$//g')" printf '%s\n' "$video" if test -n "$(grep -e "$video" "$file")"