From: Alexander Yakushev Date: Wed, 23 Nov 2011 00:08:41 +0000 (+0200) Subject: Replace escaped slashes with normal ones X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0a22b6a911c10d2a07455846f1ee1cd40940b2e6;p=awesompd.git 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. --- 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