From 38ef613ed079378dad80084ac330c6f1acefcd20 Mon Sep 17 00:00:00 2001 From: Alexander Yakushev Date: Tue, 3 Jan 2012 17:54:01 +0200 Subject: Minor fix in album cover downloading When track data was retrieved from cache and album ID was less than 1000 album cover would not be downloaded. --- awesompd.lua | 2 +- jamendo.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awesompd.lua b/awesompd.lua index 10c45f3..5d7f6ac 100644 --- a/awesompd.lua +++ b/awesompd.lua @@ -1,7 +1,7 @@ --------------------------------------------------------------------------- -- @author Alexander Yakushev -- @copyright 2010-2011 Alexander Yakushev --- @release v1.1.2 +-- @release v1.1.3 --------------------------------------------------------------------------- awesompd = {} diff --git a/jamendo.lua b/jamendo.lua index 164a7b8..4e2ca30 100644 --- a/jamendo.lua +++ b/jamendo.lua @@ -1,7 +1,7 @@ --------------------------------------------------------------------------- -- @author Alexander Yakushev -- @copyright 2011 Alexander Yakushev --- @release v1.1.2 +-- @release v1.1.3 --------------------------------------------------------------------------- -- Grab environment @@ -415,7 +415,7 @@ function fetch_album_cover_request(track_id) string.sub(a_id, 1, string.len(a_id) - 3) track.album_image = string.format("http://imgjam.com/albums/s%s/%s/covers/1.100.jpg", - prefix, a_id) + prefix == "" and 0 or prefix, a_id) end return file_path, string.format("wget %s -O %s > /dev/null", -- cgit v1.2.3