From a4b0eb83399093eb45651416c3f96276b6cb6c97 Mon Sep 17 00:00:00 2001 From: Alexander Yakushev Date: Thu, 26 Jul 2012 19:53:41 +0300 Subject: Adapt to yet new Jamendo link format --- awesompd.lua | 2 +- jamendo.lua | 6 +++--- 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 -- @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 -- @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. -- cgit v1.2.3