Skip to content

Commit

Permalink
CoverArt.retrieve(): invert the test and simplify code a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
zas committed Sep 20, 2023
1 parent 8924f7f commit 738876e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions picard/coverart/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ def __repr__(self):
def retrieve(self):
"""Retrieve available cover art images for the release"""
config = get_config()
if (not config.setting["save_images_to_tags"] and not
config.setting["save_images_to_files"]):
if config.setting['save_images_to_tags'] or config.setting['save_images_to_files']:
self.providers = cover_art_providers()
self.next_in_queue()
else:
log.debug("Cover art disabled by user options.")
return

self.providers = cover_art_providers()
self.next_in_queue()

def _set_metadata(self, coverartimage, data):
try:
Expand Down

0 comments on commit 738876e

Please sign in to comment.