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