aboutsummaryrefslogtreecommitdiff
path: root/jamendo.lua
diff options
context:
space:
mode:
Diffstat (limited to 'jamendo.lua')
-rw-r--r--jamendo.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/jamendo.lua b/jamendo.lua
index 57eccb5..750aa5d 100644
--- a/jamendo.lua
+++ b/jamendo.lua
@@ -307,12 +307,10 @@ end
-- Jamendo returns Unicode symbols as \uXXXX. Lua does not transform
-- them into symbols so we need to do it ourselves.
function utf8_codes_to_symbols (s)
--- print(utf8_codes_to_symbols, s)
local hexnums = "[%dabcdefABCDEF]"
local pattern = string.format("\\u(%s%s%s%s?%s?)",
hexnums, hexnums, hexnums, hexnums, hexnums)
local decode = function(code)
- print("Look at me! I parse " .. code)
code = tonumber(code, 16)
if code < 128 then -- one-byte symbol
return string.char(code)