Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 March 30, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  default.py
4  default.py
@@ -586,7 +586,7 @@ def _get_data( self, site, item ):
586 586
                         name.encode('ascii', 'ignore')
587 587
                         match = 'true'
588 588
                 elif element.tag == "image":
589  
-                    if element.attrib.get('size') == "extralarge":
  589
+                    if element.attrib.get('size') == "extralarge" and not "default_album" in element.text:
590 590
                         image = element.text
591 591
                         if not image:
592 592
                             image = ''
@@ -601,7 +601,7 @@ def _get_data( self, site, item ):
601 601
                         name.encode('ascii', 'ignore')
602 602
                         match = 'true'
603 603
                 elif element.tag == "image":
604  
-                    if element.attrib.get('size') == "extralarge":
  604
+                    if element.attrib.get('size') == "extralarge" and not "default_album" in element.text:
605 605
                         image = element.text
606 606
                         if not image:
607 607
                             image = ''

0 notes on commit 36ce69b

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