aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Yakushev <yakushev.alex@gmail.com>2012-01-03 17:54:01 +0200
committerAlexander Yakushev <yakushev.alex@gmail.com>2012-01-03 17:54:01 +0200
commit38ef613ed079378dad80084ac330c6f1acefcd20 (patch)
tree1407ec2b82ae3f387a830f8922b729bca45aa1ba
parent45dbf9edbdc728e6835a473fff08c62829961de2 (diff)
downloadawesompd-38ef613ed079378dad80084ac330c6f1acefcd20.tar.gz
awesompd-38ef613ed079378dad80084ac330c6f1acefcd20.tar.bz2
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.
-rw-r--r--awesompd.lua2
-rw-r--r--jamendo.lua4
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 <yakushev.alex@gmail.com>
-- @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 <yakushev.alex@gmail.com>
-- @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",