From 03ce35f4d3e01862fddb6f527c9d3a58ac2f528b Mon Sep 17 00:00:00 2001 From: wisp3rwind <17089248+wisp3rwind@users.noreply.github.com> Date: Sat, 12 Feb 2022 23:10:22 +0100 Subject: [PATCH] art: whitespace/comment improvements --- beets/art.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beets/art.py b/beets/art.py index eb283d600..619c472a5 100644 --- a/beets/art.py +++ b/beets/art.py @@ -51,14 +51,17 @@ def embed_item(log, item, imagepath, maxwidth=None, itempath=None, quality=0): """Embed an image into the item's media file. """ - # Conditions and filters. + # Conditions. if compare_threshold: if not check_art_similarity(log, item, imagepath, compare_threshold): log.info('Image not similar; skipping.') return + if ifempty and get_art(log, item): log.info('media file already contained art') return + + # Filters. if maxwidth and not as_album: imagepath = resize_image(log, imagepath, maxwidth, quality)