aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Yakushev <yakushev.alex@gmail.com>2011-11-23 02:08:41 +0200
committerAlexander Yakushev <yakushev.alex@gmail.com>2011-11-23 02:08:41 +0200
commit0a22b6a911c10d2a07455846f1ee1cd40940b2e6 (patch)
treebca63e207f4ed29e7a9b1a6bcd87b5c0bcdbcaa6
parent71d5cbaf520369f07708d99f920f11d54e8838d3 (diff)
downloadawesompd-0a22b6a911c10d2a07455846f1ee1cd40940b2e6.tar.gz
awesompd-0a22b6a911c10d2a07455846f1ee1cd40940b2e6.tar.bz2
Replace escaped slashes with normal ones
Jamendo suddenly began to return all links with slashes escaped (like this \/). Because of that mpc couldn't correctly understand the link if passed in single quotes.
-rw-r--r--awesompd.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/awesompd.lua b/awesompd.lua
index 5997c1f..97c3722 100644
--- a/awesompd.lua
+++ b/awesompd.lua
@@ -729,7 +729,7 @@ end
function awesompd:add_jamendo_tracks(track_table)
for i = 1,table.getn(track_table) do
- self:command("add '" .. track_table[i].stream .. "'")
+ self:command("add '" .. string.gsub(track_table[i].stream, '\\/', '/') .. "'")
end
self.recreate_menu = true
self.recreate_list = true