mirror of
https://github.com/rembo10/headphones.git
synced 2026-04-17 18:39:28 +01:00
autopep8 headphones/albumart.py
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user