Skip to content

Commit

Permalink
Merge pull request metabrainz#451 from rahul-raturi/bugs
Browse files Browse the repository at this point in the history
PICARD 780: CAA cover art provider runs even if cover art has already been loaded
  • Loading branch information
zas committed Jan 3, 2016
2 parents d0d23aa + ae8e91e commit 055d7a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion picard/coverart/providers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def queue_images(self):
# CoverArtProvider.WAIT
old = getattr(self, 'queue_downloads') #compat with old plugins
if callable(old):
old()
log.warning('CoverArtProvider: queue_downloads() was replaced by queue_images()')
return old()
else:
raise NotImplementedError

Expand Down
3 changes: 2 additions & 1 deletion picard/coverart/providers/caa.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ def _has_suitable_artwork(self):

def enabled(self):
"""Check if CAA artwork has to be downloaded"""
if not super(CoverArtProviderCaa, self).enabled():
if not super(CoverArtProviderCaa, self).enabled() or \
self.coverart.front_image_found:
return False
if self.restrict_types and not self.len_caa_types:
log.debug("User disabled all Cover Art Archive types")
Expand Down

0 comments on commit 055d7a5

Please sign in to comment.