autopep8 headphones/albumart.py

This commit is contained in:
Jesse Mullan
2014-10-27 10:47:36 -07:00
parent be7716326e
commit ed21bd4b3e

View File

@@ -15,13 +15,16 @@
from headphones import request, db
def getAlbumArt(albumid):
myDB = db.DBConnection()
asin = myDB.action('SELECT AlbumASIN from albums WHERE AlbumID=?', [albumid]).fetchone()[0]
asin = myDB.action(
'SELECT AlbumASIN from albums WHERE AlbumID=?', [albumid]).fetchone()[0]
if asin:
return 'http://ec1.images-amazon.com/images/P/%s.01.LZZZZZZZ.jpg' % asin
def getCachedArt(albumid):
from headphones import cache