Fixed search bug

This commit is contained in:
Jenga Phoenix 2019-03-30 20:14:57 -05:00
parent 65048635cd
commit a13cd7dde6

10
wyrics
View File

@ -92,8 +92,8 @@ function search_parse {
| sed 's/.*href=\"//' \
| sed 's/\" class.*//')"
local title="$(echo "$line" \
| sed 's%.*\" >%%' \
| sed 's%</a>.*%%')"
| sed 's%.*">%%' \
| sed 's%</a>%%')"
if echo "$title" | grep "http" > /dev/null; then
i=$(subtract $i 1)
@ -221,8 +221,8 @@ case "$1" in
lyrics "$url"
;;
*)
usage
;;
# *)
# usage
# ;;
esac