From b4b43aa9362eae8bbbda647a5a94a59bf65a6ba6 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 13 Aug 2003 09:55:22 +0000 Subject: [PATCH] Added configurable titles/tooltips for the search URLs. Parentheses are now stripped from the album query string. --- xmmslist.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/xmmslist.py b/xmmslist.py index c816c5d..08279b7 100755 --- a/xmmslist.py +++ b/xmmslist.py @@ -46,13 +46,16 @@ playlist=os.path.expanduser('~/bin/playlist.txt') # The maximum number of songs to keep in the playlist maxsongs=20 -# The song search URL +# The song search tooltip and URL +songtip='Search for the lyrics of this song.' songsearch='http://www.lyricsstation.com/search.asp?R1=V1&txtSearch=' -# The artist search URL +# The artist search tooltip and URL +bandtip='Search for this artist on Google.' bandsearch='"http://www.google.com/search?cat=gwd%2FTop%2FArts%2FMusic&q=' -# The album search URL +# The album search tooltip URL +albumtip='Search for this album on freedb.' albumsearch='http://www.freedb.org/freedb_search.php?allfields=NO&fields=artist&fields=title&allcats=YES&grouping=cats&words=' @@ -73,7 +76,7 @@ if len(sys.argv) > 1: # Song if len(m.group(2)) >= 1: - song += '' + cgi.escape(m.group(2)) + '' + song += '' + cgi.escape(m.group(2)) + '' else: song += 'n/a' @@ -81,7 +84,7 @@ if len(sys.argv) > 1: # Artist if len(m.group(1)) >= 1: - song += '' + cgi.escape(m.group(1)) + '' + song += '' + cgi.escape(m.group(1)) + '' else: song += 'n/a' @@ -89,7 +92,7 @@ if len(sys.argv) > 1: # Album if len(m.group(3)) >= 1: - song += '' + cgi.escape(m.group(3)) + '' + song += '' + cgi.escape(m.group(3)) + '' else: song += 'n/a'