aboutsummaryrefslogtreecommitdiff
path: root/jamendo.lua
diff options
context:
space:
mode:
authorAlexander Yakushev <yakushev.alex@gmail.com>2011-11-21 18:45:25 +0200
committerAlexander Yakushev <yakushev.alex@gmail.com>2011-11-21 18:45:25 +0200
commit71d5cbaf520369f07708d99f920f11d54e8838d3 (patch)
tree1e7f80407acde59e7dfa399f998f401a7d3771dd /jamendo.lua
parent5a91def9330b4601cf1c2af8389ec53c26054f5a (diff)
downloadawesompd-71d5cbaf520369f07708d99f920f11d54e8838d3.tar.gz
awesompd-71d5cbaf520369f07708d99f920f11d54e8838d3.tar.bz2
Temporary adapt to Ogg streaming from radionomy
This will be finished when Jamendo API migrates to radionomy completely
Diffstat (limited to 'jamendo.lua')
-rw-r--r--jamendo.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/jamendo.lua b/jamendo.lua
index 953adf6..5a01975 100644
--- a/jamendo.lua
+++ b/jamendo.lua
@@ -86,6 +86,7 @@ local search_template = { fields = { "id", "name" },
params = { order = ORDER_RELEVANCE,
n = 1}}
+-- DEPRECATED. Will be removed in the next major release.
-- Returns default stream number for MP3 format. Requests API for it
-- not more often than every hour.
local function get_default_mp3_stream()
@@ -111,11 +112,11 @@ function get_id_from_link(link)
return id
end
--- Returns link to music stream for the given track ID. Uses MP3
+-- Returns link to music stream for the given track ID. Uses Ogg
-- format and the default stream for it.
local function get_link_by_id(id)
- return string.format("http://stream%s.jamendo.com/stream/%s/mp31/",
- get_default_mp3_stream(), id)
+ -- This function is subject to change in the future.
+ return string.format("http://jamstore.radionomy.net/?trackid=%s&format=ogg2", id)
end
-- -- Returns the album id for given music stream.