Browse code

Fixed search bug

Jenga Phoenix authored on 2019-03-31 01:14:57
Showing 1 changed files
... ...
@@ -92,8 +92,8 @@ function search_parse {
92 92
 				| sed 's/.*href=\"//' \
93 93
 				| sed 's/\" class.*//')"
94 94
 		local title="$(echo "$line" \
95
-				| sed 's%.*\" >%%' \
96
-				| sed 's%</a>.*%%')"
95
+				| sed 's%.*">%%' \
96
+				| sed 's%</a>%%')"
97 97
 
98 98
 		if echo "$title" | grep "http" > /dev/null; then
99 99
 			i=$(subtract $i 1)
... ...
@@ -221,8 +221,8 @@ case "$1" in
221 221
 
222 222
 		lyrics "$url"
223 223
 		;;
224
-	*)
225
-		usage
226
-		;;
224
+#	*)
225
+#		usage
226
+#		;;
227 227
 
228 228
 esac