From f67691e8d7d71caff6b8ba655b10778af715629d Mon Sep 17 00:00:00 2001 From: emma Date: Fri, 24 Nov 2023 19:51:18 -0700 Subject: [PATCH] fixed duplicates showing up in pick --- yt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt b/yt index 297a272..fcfef9d 100755 --- a/yt +++ b/yt @@ -158,7 +158,7 @@ pick() { # Pick a video to play from a playlist of videos if test -z "$list"; then list="$(grep "$line" "$cachefile")" else - list="$(printf '%s\n%s' "$list" "$(grep "$line" "$cachefile")")" + list="$(printf '%s\n%s' "$list" "$(grep "$line" "$cachefile" | uniq)")" fi done