]> gitweb.fluxo.info Git - awesompd.git/commitdiff
Adapt to yet new Jamendo link format
authorAlexander Yakushev <yakushev.alex@gmail.com>
Thu, 26 Jul 2012 16:53:41 +0000 (19:53 +0300)
committerAlexander Yakushev <yakushev.alex@gmail.com>
Thu, 26 Jul 2012 17:14:59 +0000 (20:14 +0300)
awesompd.lua
jamendo.lua

index 47c15dbff398014509159abd3f0371fb69f2cbe5..faf1253d13b8de1a4fabc0f26da8ea4ca6455cd8 100644 (file)
@@ -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 = {}
index 9e31fc41ca6b32453d9de5220389cd0571cd898c..9fa0428b23667f4cf27329b832a74f6158a3a074 100644 (file)
@@ -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.