mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 20:12:33 +01:00
Do not assign extra variable to keep things within max line_length
This commit is contained in:
parent
e1ffadb2d6
commit
e9972491f1
1 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue