aboutsummaryrefslogtreecommitdiff
path: root/jamendo.lua
diff options
context:
space:
mode:
Diffstat (limited to 'jamendo.lua')
-rw-r--r--jamendo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/jamendo.lua b/jamendo.lua
index 2e83589..f495006 100644
--- a/jamendo.lua
+++ b/jamendo.lua
@@ -77,7 +77,7 @@ function get_default_mp3_stream()
local trygetlink =
perform_request("echo $(curl -w %{redirect_url} " ..
"'http://api.jamendo.com/get2/stream/track/redirect/" ..
- "?streamencoding="..format.."&id=729304')")
+ "?streamencoding="..FORMAT_MP3.value.."&id=729304')")
local _, _, prefix = string.find(trygetlink,"stream(%d+)\.jamendo\.com")
default_mp3_stream = { id = prefix, last_checked = os.time() }
end