mirror of
https://github.com/beetbox/beets.git
synced 2026-01-08 17:08:12 +01:00
artresizer: add a comment
This commit is contained in:
parent
0125b1cd42
commit
fa967f3efc
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue