From 0a22b6a911c10d2a07455846f1ee1cd40940b2e6 Mon Sep 17 00:00:00 2001 From: Alexander Yakushev Date: Wed, 23 Nov 2011 02:08:41 +0200 Subject: 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. --- awesompd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3