fix bug in supplying multi word query to stream function

This commit is contained in:
ksyasuda 2022-01-22 00:55:29 -08:00
parent 8902875806
commit e01040e15c

View File

@ -707,7 +707,7 @@ stream() {
searched="$?" searched="$?"
lg "Searched before: $searched" lg "Searched before: $searched"
if [ "$searched" -eq 0 ]; then if [ "$searched" -eq 0 ]; then
search_results=$(search_anime "$query") search_results=$(search_anime $query) # want word splitting to account for both input cases
[ -z "$search_results" ] && die "No search results found" [ -z "$search_results" ] && die "No search results found"
lg "SEARCH RESULTS: $search_results" lg "SEARCH RESULTS: $search_results"
if ! anime_selection "$search_results"; then if ! anime_selection "$search_results"; then