mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-14 07:39:36 +01:00
Little bug fix to prevent opening up 'http://None'
This commit is contained in:
@@ -360,7 +360,11 @@ def doPostProcessing(albumid, albumpath, release, tracks, downloaded_track_list,
|
||||
artwork = None
|
||||
album_art_path = albumart.getAlbumArt(albumid)
|
||||
if headphones.EMBED_ALBUM_ART or headphones.ADD_ALBUM_ART:
|
||||
artwork = request.request_content(album_art_path)
|
||||
|
||||
if album_art_path:
|
||||
artwork = request.request_content(album_art_path)
|
||||
else:
|
||||
artwork = None
|
||||
|
||||
if not album_art_path or not artwork or len(artwork) < 100:
|
||||
logger.info("No suitable album art found from Amazon. Checking Last.FM....")
|
||||
|
||||
Reference in New Issue
Block a user