Fixed search bug
This commit is contained in:
parent
65048635cd
commit
a13cd7dde6
10
wyrics
10
wyrics
|
@ -92,8 +92,8 @@ function search_parse {
|
||||||
| sed 's/.*href=\"//' \
|
| sed 's/.*href=\"//' \
|
||||||
| sed 's/\" class.*//')"
|
| sed 's/\" class.*//')"
|
||||||
local title="$(echo "$line" \
|
local title="$(echo "$line" \
|
||||||
| sed 's%.*\" >%%' \
|
| sed 's%.*">%%' \
|
||||||
| sed 's%</a>.*%%')"
|
| sed 's%</a>%%')"
|
||||||
|
|
||||||
if echo "$title" | grep "http" > /dev/null; then
|
if echo "$title" | grep "http" > /dev/null; then
|
||||||
i=$(subtract $i 1)
|
i=$(subtract $i 1)
|
||||||
|
@ -221,8 +221,8 @@ case "$1" in
|
||||||
|
|
||||||
lyrics "$url"
|
lyrics "$url"
|
||||||
;;
|
;;
|
||||||
*)
|
# *)
|
||||||
usage
|
# usage
|
||||||
;;
|
# ;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
Ŝarĝante…
Reference in New Issue