get albumart

master
Yo'av Moshe 2014-06-02 11:51:38 +03:00
parent d884e29af8
commit 7ff9f4e259
1 changed files with 6 additions and 0 deletions

View File

@ -74,6 +74,12 @@ class BandcampDownloader():
print e
print "Downloading failed.."
return False
try:
tmp_art_file = wgetter.download(album['art'], outdir=dirname)
os.rename(tmp_art_file, dirname+"/cover.jpg")
except Exception as e:
print e
print "Couldn't download albumart."
return True