aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jamendo.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/jamendo.lua b/jamendo.lua
index 4e2ca30..0f30b13 100644
--- a/jamendo.lua
+++ b/jamendo.lua
@@ -164,6 +164,11 @@ function return_track_table(request_table)
end
_, _, parse_table[i].artist_link_name =
string.find(parse_table[i].artist_url, "\\/artist\\/(.+)")
+ -- Remove Jamendo escape slashes
+ parse_table[i].artist_name =
+ string.gsub(parse_table[i].artist_name, "\\/", "/")
+ parse_table[i].name = string.gsub(parse_table[i].name, "\\/", "/")
+
parse_table[i].display_name =
parse_table[i].artist_name .. " - " .. parse_table[i].name
-- Do Jamendo a favor, extract album_id for the track yourself