From 6d87523bbf8ed4acf44ef5e88dd73c9d2cd8871d Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 13 Aug 2003 08:35:40 +0000 Subject: [PATCH 1/6] Changed album search from cduniverse.com to freedb.org. --- xmmslist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmmslist.py b/xmmslist.py index f0dd76e..c816c5d 100755 --- a/xmmslist.py +++ b/xmmslist.py @@ -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=' # 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: @@ -89,7 +89,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' From b4b43aa9362eae8bbbda647a5a94a59bf65a6ba6 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 13 Aug 2003 09:55:22 +0000 Subject: [PATCH 2/6] 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' From 4bf541ae877d821a25670ec9c6dbd7636d6420f0 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Fri, 15 Aug 2003 19:04:22 +0000 Subject: [PATCH 3/6] Changed upload from every 15 min to every 7 min. --- xmmslist.cron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmmslist.cron b/xmmslist.cron index ba4b9d6..055837d 100644 --- a/xmmslist.cron +++ b/xmmslist.cron @@ -1 +1 @@ -*/15 * * * * ${HOME}/bin/xmmslist.sh +*/7 * * * * ${HOME}/bin/xmmslist.sh From 4ffd817961a1c9c1b066ca0d0f695a782defd1aa Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Fri, 15 Aug 2003 19:05:21 +0000 Subject: [PATCH 4/6] Changed refresh from 15 min to 7 min. --- index.shtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.shtml b/index.shtml index e177773..fe5f162 100644 --- a/index.shtml +++ b/index.shtml @@ -1,7 +1,7 @@ - + Erik's Playlist