fixed search result parsing when title contains a bracket

This commit is contained in:
2023-11-21 13:29:40 -07:00
parent 32101cd6a6
commit dc5b3ffdad

2
yt
View File

@@ -192,7 +192,7 @@ search() {
selection="$(printf '%s\n' "$results" \
| $YTPICK \
| cut -d'[' -f2 \
| sed 's/.*\[//g'
| tr -d ']')"
if test -n "$selection"; then