From fbf3516435c2b1508afe60b2b9570b0469ba258a Mon Sep 17 00:00:00 2001 From: emma Date: Wed, 15 Nov 2023 11:26:27 -0700 Subject: [PATCH] fixed adding videos to playlists --- yt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt b/yt index 4851bc0..898238b 100755 --- a/yt +++ b/yt @@ -20,7 +20,7 @@ set -e add() { # adds a video to a playlist file while test -n "$2"; do - if test -z "$(sed -n ";$1;p" "$2")" + if test -n "$(grep -e "$1" "$2")" then printf "%s: %s: %s: Video already in playlist.\n" "$argv0" "$2" "$1" exit