From e9972491f1e4d49cbabcaec258add299e6ea0efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Wed, 23 Mar 2022 16:34:13 +0000 Subject: [PATCH] Do not assign extra variable to keep things within max line_length --- beets/autotag/hooks.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/beets/autotag/hooks.py b/beets/autotag/hooks.py index 2f9e2135c..1811cbaf1 100644 --- a/beets/autotag/hooks.py +++ b/beets/autotag/hooks.py @@ -620,14 +620,15 @@ def album_candidates(items, artist, album, va_likely, extra_tags): constrain the search. """ - common_args = [album, len(items), extra_tags] # Base candidates if we have album and artist to match. if artist and album: - yield from invoke_mb(mb.match_album, artist, *common_args) + yield from invoke_mb(mb.match_album, artist, album, len(items), + extra_tags) # Also add VA matches from MusicBrainz where appropriate. if va_likely and album: - yield from invoke_mb(mb.match_album, None, *common_args) + yield from invoke_mb(mb.match_album, None, album, len(items), + extra_tags) # Candidates from plugins. yield from plugins.candidates(items, artist, album, va_likely, extra_tags)