Skip to content
Browse files

Adapt to yet new Jamendo link format

  • Loading branch information...
1 parent e075d81 commit a4b0eb83399093eb45651416c3f96276b6cb6c97 @alexander-yakushev committed Jul 26, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 awesompd.lua
  2. +3 −3 jamendo.lua
View
2 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 = {}
View
6 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,15 +107,15 @@ 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
-- Returns link to music stream for the given track ID. Uses MP3
-- 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.

0 comments on commit a4b0eb8

Please sign in to comment.
Something went wrong with that request. Please try again.