aboutsummaryrefslogtreecommitdiff
path: root/awesompd.lua
diff options
context:
space:
mode:
authorAlexander Yakushev <yakushev.alex@gmail.com>2011-10-29 23:44:28 +0300
committerAlexander Yakushev <yakushev.alex@gmail.com>2011-10-29 23:44:28 +0300
commit920d676190310540af123862622993fbed0f5ba4 (patch)
treeb12f65122ca5ab7f7891c06e96bfebb2f3b7b25c /awesompd.lua
parent89a7c1516bad4e259655b08ff8de5ffb72077ac4 (diff)
downloadawesompd-920d676190310540af123862622993fbed0f5ba4.tar.gz
awesompd-920d676190310540af123862622993fbed0f5ba4.tar.bz2
Add fetching the album name for Jamendo streams
Diffstat (limited to 'awesompd.lua')
-rw-r--r--awesompd.lua16
1 files changed, 10 insertions, 6 deletions
diff --git a/awesompd.lua b/awesompd.lua
index dec7f45..1daa273 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.0.9
+-- @release v1.1.0pre
---------------------------------------------------------------------------
awesompd = {}
@@ -555,11 +555,15 @@ function awesompd:menu_jamendo_top()
return
function ()
local track_table = jamendo.return_track_table()
- self:add_jamendo_tracks(track_table)
- self:add_hint("Jamendo Top 100 by " ..
- jamendo.current_request_table.params.order.short_display,
- format("Added %s tracks to the playlist",
- table.getn(track_table)))
+ if not track_table then
+ self:add_hint("Can't connect to Jamendo server", "Please check your network connection")
+ else
+ self:add_jamendo_tracks(track_table)
+ self:add_hint("Jamendo Top 100 by " ..
+ jamendo.current_request_table.params.order.short_display,
+ format("Added %s tracks to the playlist",
+ table.getn(track_table)))
+ end
end
end