Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 36ce69be77a9451a6353bef67f0f634cf2587e6d 1 parent 1d584fe
@NisseDILLIGAF authored
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 = ''
Please sign in to comment.
Something went wrong with that request. Please try again.