Skip to content
Browse files

Fix for 'default_album' on Last.fm

Sometimes the album covers are 'default_album_medium.png'
This prevents download when no album cover...
  • Loading branch information...
1 parent 1d584fe commit 36ce69be77a9451a6353bef67f0f634cf2587e6d @NisseDILLIGAF committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 default.py
View
4 default.py
@@ -586,7 +586,7 @@ def _get_data( self, site, item ):
name.encode('ascii', 'ignore')
match = 'true'
elif element.tag == "image":
- if element.attrib.get('size') == "extralarge":
+ if element.attrib.get('size') == "extralarge" and not "default_album" in element.text:
image = element.text
if not image:
image = ''
@@ -601,7 +601,7 @@ def _get_data( self, site, item ):
name.encode('ascii', 'ignore')
match = 'true'
elif element.tag == "image":
- if element.attrib.get('size') == "extralarge":
+ if element.attrib.get('size') == "extralarge" and not "default_album" in element.text:
image = element.text
if not image:
image = ''

0 comments on commit 36ce69b

Please sign in to comment.
Something went wrong with that request. Please try again.