From fa967f3efc7bccd9d6d6b6991d8aab5e35e45730 Mon Sep 17 00:00:00 2001 From: wisp3rwind <17089248+wisp3rwind@users.noreply.github.com> Date: Sat, 12 Feb 2022 22:59:25 +0100 Subject: [PATCH] artresizer: add a comment --- beets/art.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beets/art.py b/beets/art.py index 1dff8b39a..eb283d600 100644 --- a/beets/art.py +++ b/beets/art.py @@ -115,6 +115,10 @@ def resize_image(log, imagepath, maxwidth, quality): def check_art_similarity(log, item, imagepath, compare_threshold): """A boolean indicating if an image is similar to embedded item art. + + If no embedded art exists, always return `True`. + + This must only be called if `ArtResizer.shared.can_compare` is `True`. """ with NamedTemporaryFile(delete=True) as f: art = extract(log, f.name, item)