Image 01
profile-image

UncleOwen

UncleOwen UncleOwen
Amarok LyricWiki.org Lyrics

Amarok 1.x Scripts by Rede 39 comments

2.0 seems to have problems with UTF8. This worked in the version before.

Example: http://lyricwiki.org/Wise_Guys:K - Apr 16 2007
Amarok LyricWiki.org Lyrics

Amarok 1.x Scripts by Rede 39 comments

Same error here. Just to make debugging easier, here's a small patch that fixes the warnings:

--- lyrics_lyricwiki.rb 2006-11-05 18:39:04.000000000 +0100
+++ lyrics_lyricwiki.rb.fixed 2006-11-05 18:33:59.000000000 +0100
@@ -579,7 +579,7 @@
path = '/' + path.slice(0..pathsliceend)

xmlpath = '/index.php?title=Special:Export' + path
- urlsource = fetchLyricsXML (path,proxyEnabled,proxyIP,proxyPort )
+ urlsource = fetchLyricsXML(path,proxyEnabled,proxyIP,proxyPort)
end

return urlsource
@@ -637,7 +637,7 @@
#Retrieve URL Source from http://lyricwiki.org/Artist_Name:Song_Name
path = '/' + artist.gsub( ' ', '_' ) + ':' + title.gsub( ' ', '_' )

- urlsource = fetchLyricsXML (path,proxyEnabled,proxyIP,proxyPort )
+ urlsource = fetchLyricsXML(path,proxyEnabled,proxyIP,proxyPort)

if urlsource == 'error'
`dcop amarok contextbrowser showCurrentTrack`
@@ -650,7 +650,7 @@
#Retrieve URL Source from http://lyricwiki.org/Artist_Name:Song_Name
path = '/' + artist.gsub( ' ', '_' ) + ':' + title.gsub( ' ', '_' )

- urlsource = fetchLyricsXML (path,proxyEnabled,proxyIP,proxyPort )
+ urlsource = fetchLyricsXML(path,proxyEnabled,proxyIP,proxyPort)

if urlsource.index('') == nil
searchLyricWiki( artist, title ) #page doesn't exist, search LyricWiki and display results
@@ -674,7 +674,7 @@
proxyIP = settingsarray[2].strip
proxyPort = settingsarray[3].strip

- urlsource = fetchLyricsXML (path,proxyEnabled,proxyIP,proxyPort )
+ urlsource = fetchLyricsXML(path,proxyEnabled,proxyIP,proxyPort)

if urlsource == 'error'
`dcop amarok contextbrowser showCurrentTrack`

No idea about the real error, though, since I don't know ruby. However, I noticed that lyricswiki.org seems to be very slow today, I've even seen some internal server errors. Maybe that's what's causing the error? - Nov 05 2006