diff options
author | Alexander Yakushev <yakushev.alex@gmail.com> | 2011-11-23 02:08:41 +0200 |
---|---|---|
committer | Alexander Yakushev <yakushev.alex@gmail.com> | 2011-11-23 02:08:41 +0200 |
commit | 0a22b6a911c10d2a07455846f1ee1cd40940b2e6 (patch) | |
tree | bca63e207f4ed29e7a9b1a6bcd87b5c0bcdbcaa6 | |
parent | 71d5cbaf520369f07708d99f920f11d54e8838d3 (diff) | |
download | awesompd-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.lua | 2 |
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 |