Changed album search from cduniverse.com to freedb.org.

This commit is contained in:
Erik C. Thauvin 2003-08-13 08:35:40 +00:00
parent c6832dfebe
commit 6d87523bbf

View file

@ -53,7 +53,7 @@ songsearch='http://www.lyricsstation.com/search.asp?R1=V1&txtSearch='
bandsearch='"http://www.google.com/search?cat=gwd%2FTop%2FArts%2FMusic&q=' bandsearch='"http://www.google.com/search?cat=gwd%2FTop%2FArts%2FMusic&q='
# The album search URL # The album search URL
albumsearch='http://www.cduniverse.com/sresult.asp?HT_Search=TITLE&HT_Search_Info=' albumsearch='http://www.freedb.org/freedb_search.php?allfields=NO&fields=artist&fields=title&allcats=YES&grouping=cats&words='
if len(sys.argv) > 1: if len(sys.argv) > 1:
@ -89,7 +89,7 @@ if len(sys.argv) > 1:
# Album # Album
if len(m.group(3)) >= 1: if len(m.group(3)) >= 1:
song += '<td><a href="' + albumsearch + urllib.quote_plus(m.group(3)) + '" target="_blank">' + cgi.escape(m.group(3)) + '</a></td>' song += '<td><a href="' + albumsearch + urllib.quote_plus(m.group(1) + ' ' + m.group(3)) + '" target="_blank">' + cgi.escape(m.group(3)) + '</a></td>'
else: else:
song += '<td><font color="gray">n/a</font></td>' song += '<td><font color="gray">n/a</font></td>'