Package: amarok Version: 1.4.4-2 Severity: normal Tags: patch
Hello! Amarok can get lyrics via http proxy, but not via http proxy with authentication. This patch corrects this problem. Best regards, Filipe
--- /usr/share/apps/amarok/scripts/lyrics_lyrc/lyrics_lyrc.rb-or 2007-02-03 13:48:29.000000000 -0200 +++ /usr/share/apps/amarok/scripts/lyrics_lyrc/lyrics_lyrc.rb 2007-02-03 13:58:30.000000000 -0200 @@ -110,6 +110,9 @@ proxy_host = nil proxy_port = nil + proxy_user = nil + proxy_pass = nil + if ( @proxy == nil ) @proxy = `dcop amarok script proxyForProtocol http` end @@ -117,9 +120,10 @@ if ( proxy_uri.class != URI::Generic ) proxy_host = proxy_uri.host proxy_port = proxy_uri.port + proxy_user, proxy_pass = proxy_uri.userinfo.split(':') unless proxy_uri.userinfo.nil? end - h = Net::HTTP.new( host, 80, proxy_host, proxy_port ) + h = Net::HTTP.new( host, 80, proxy_host, proxy_port, proxy_user, proxy_pass ) response = h.get( path ) unless response.code == "200" @@ -193,4 +197,3 @@ fetchLyrics( "", "", url ) end end -