fixed duplicates showing up in pick

This commit is contained in:
2023-11-24 19:51:18 -07:00
parent 4fa1cc7fde
commit f67691e8d7

2
yt
View File

@@ -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