summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--amarok/src/scripts/score_default/score_default.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/amarok/src/scripts/score_default/score_default.rb b/amarok/src/scripts/score_default/score_default.rb
index f80a3a7d..0eb00727 100644
--- a/amarok/src/scripts/score_default/score_default.rb
+++ b/amarok/src/scripts/score_default/score_default.rb
@@ -6,7 +6,7 @@
#
# License: GNU General Public License V2
-require 'uri'
+require 'cgi'
loop do
args = gets.chomp.split(" ")
@@ -30,7 +30,7 @@ loop do
newscore = ( ( prevscore * playcount ) + percentage ) / ( playcount + 1 )
end
- system( "dcop", "amarok", "player", "setScoreByPath", URI::decode( url ), newscore.to_s )
+ system( "dcop", "amarok", "player", "setScoreByPath", CGI::unescape( url ), newscore.to_s )
end
end