[Surfraw-commits] [SCM] surfraw - a fast unix command line interface to WWW branch, master, updated. surfraw_2-2-5_1-161-gef559be
Ian Beckwith
ianb at erislabs.net
Sat Feb 19 04:06:31 UTC 2011
The following commit has been merged in the master branch:
commit 882c073e3722c1041d2f376e89cc20d637ab94c6
Author: Ian Beckwith <ianb at erislabs.net>
Date: Sat Feb 19 03:45:42 2011 +0000
lastfm: fix url to avoid space-mangling redirect
diff --git a/ChangeLog b/ChangeLog
index 0827df0..0eae6c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
+2011-02-19 Ian Beckwith <ianb at erislabs.net>
+
+ * lastfm: fix url to avoid a redirect that mangled
+ args with spaces.
+
2011-02-09 Kyle Isom <coder at kyleisom.net>
+
* fix a number of tests to match current site formats
2011-01-12 Kyle Isom <coder at kyleisom.net>
diff --git a/elvi/lastfm b/elvi/lastfm
index 073ed0a..563ba61 100755
--- a/elvi/lastfm
+++ b/elvi/lastfm
@@ -31,11 +31,12 @@ w3_parse_option_hook () {
w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments
+
if test -z "$w3_args"; then
w3_browse_url "http://last.fm/"
else
escaped_args=`w3_url_of_arg $w3_args`
- url="http://last.fm/music/?q=${escaped_args}"
+ url="http://last.fm/search?q=${escaped_args}"
if ifno SURFRAW_lastfm_redirect
then
url="${url}&noredirect=1"
--
surfraw - a fast unix command line interface to WWW
More information about the Surfraw-commits
mailing list