mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-15 16:19:28 +01:00
Fix for getArtwork if no path (either file path or url) could be retrieved
This commit is contained in:
@@ -339,6 +339,9 @@ def getArtwork(ArtistID=None, AlbumID=None):
|
||||
c = Cache()
|
||||
artwork_path = c.get_artwork_from_cache(ArtistID, AlbumID)
|
||||
|
||||
if not artwork_path:
|
||||
return None
|
||||
|
||||
if artwork_path.startswith('http://'):
|
||||
return artwork_path
|
||||
else:
|
||||
@@ -348,4 +351,8 @@ def getInfo(ArtistID=None, AlbumID=None):
|
||||
|
||||
c = Cache()
|
||||
info = c.get_info_from_cache(ArtistID, AlbumID)
|
||||
|
||||
if not info:
|
||||
return None
|
||||
|
||||
return info
|
||||
|
||||
Reference in New Issue
Block a user