aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Yakushev <yakushev.alex@gmail.com>2012-07-26 19:53:41 +0300
committerAlexander Yakushev <yakushev.alex@gmail.com>2012-07-26 20:14:59 +0300
commita4b0eb83399093eb45651416c3f96276b6cb6c97 (patch)
treeaa13a1d7209a73d82de86b6a4a1b962dc10b2fbc
parente075d81256fb6c7b5bc151147595d2a100ce36cf (diff)
downloadawesompd-a4b0eb83399093eb45651416c3f96276b6cb6c97.tar.gz
awesompd-a4b0eb83399093eb45651416c3f96276b6cb6c97.tar.bz2
Adapt to yet new Jamendo link format
-rw-r--r--awesompd.lua2
-rw-r--r--jamendo.lua6
2 files changed, 4 insertions, 4 deletions
diff --git a/awesompd.lua b/awesompd.lua
index 47c15db..faf1253 100644
--- a/awesompd.lua
+++ b/awesompd.lua
@@ -1,7 +1,7 @@
---------------------------------------------------------------------------
-- @author Alexander Yakushev <yakushev.alex@gmail.com>
-- @copyright 2010-2011 Alexander Yakushev
--- @release v1.1.4
+-- @release v1.1.5
---------------------------------------------------------------------------
awesompd = {}
diff --git a/jamendo.lua b/jamendo.lua
index 9e31fc4..9fa0428 100644
--- a/jamendo.lua
+++ b/jamendo.lua
@@ -1,7 +1,7 @@
---------------------------------------------------------------------------
-- @author Alexander Yakushev <yakushev.alex@gmail.com>
-- @copyright 2011 Alexander Yakushev
--- @release v1.1.4
+-- @release v1.1.5
---------------------------------------------------------------------------
-- Grab environment
@@ -107,7 +107,7 @@ end
-- Returns the track ID from the given link to Jamendo stream. If the
-- given text is not the Jamendo stream returns nil.
function get_id_from_link(link)
- local _, _, id = string.find(link,"storage.newjamendo.com/%?trackid=(%d+)")
+ local _, _, id = string.find(link,"storage%-new.newjamendo.com%?trackid=(%d+)")
return id
end
@@ -115,7 +115,7 @@ end
-- format and the default stream for it.
local function get_link_by_id(id)
-- This function is subject to change in the future.
- return string.format("http://storage.newjamendo.com/%?trackid=%s&format=mp31&u=0", id)
+ return string.format("http://storage-new.newjamendo.com?trackid=%s&format=mp31&u=0", id)
end
-- -- Returns the album id for given music stream.