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