From f14eac857b91311b27bd3d934a3c87dbdd9b8fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Fri, 18 Mar 2022 22:57:22 +0000 Subject: [PATCH] Rename handle_exc to invoke_mb --- beets/autotag/hooks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beets/autotag/hooks.py b/beets/autotag/hooks.py index 4055596be..a385699ac 100644 --- a/beets/autotag/hooks.py +++ b/beets/autotag/hooks.py @@ -598,7 +598,7 @@ def tracks_for_id(track_id): yield t -def handle_exc(call_func, *args): +def invoke_mb(call_func, *args): if not config["musicbrainz"]["enabled"]: return () @@ -622,11 +622,11 @@ def album_candidates(items, artist, album, va_likely, extra_tags): common_args = [album, len(items), extra_tags] # Base candidates if we have album and artist to match. if artist and album: - yield from handle_exc(mb.match_album, artist, *common_args) + yield from invoke_mb(mb.match_album, artist, *common_args) # Also add VA matches from MusicBrainz where appropriate. if va_likely and album: - yield from handle_exc(mb.match_album, None, *common_args) + yield from invoke_mb(mb.match_album, None, *common_args) # Candidates from plugins. yield from plugins.candidates(items, artist, album, va_likely, extra_tags) @@ -641,7 +641,7 @@ def item_candidates(item, artist, title): # MusicBrainz candidates. if artist and title: - yield from handle_exc(mb.match_track, artist, title) + yield from invoke_mb(mb.match_track, artist, title) # Plugin candidates. yield from plugins.item_candidates(item, artist, title)