2424import lap
2525import numpy as np
2626
27- from beets import config , logging , metadata_plugins , plugins
27+ from beets import config , logging , metadata_plugins
2828from beets .autotag import AlbumInfo , AlbumMatch , TrackInfo , TrackMatch , hooks
2929from beets .util import get_most_common_tags
3030
@@ -274,8 +274,6 @@ def tag_album(
274274 log .debug ("Searching for album ID: {}" , search_id )
275275 for _info in metadata_plugins .albums_for_ids (search_id ):
276276 _add_candidate (items , candidates , _info )
277- if opt_candidate := candidates .get (_info .identifier ):
278- plugins .send ("album_matched" , match = opt_candidate )
279277
280278 # Use existing metadata or text search.
281279 else :
@@ -284,8 +282,6 @@ def tag_album(
284282 likelies ["mb_albumid" ], consensus ["mb_albumid" ]
285283 ):
286284 _add_candidate (items , candidates , info )
287- for candidate in candidates .values ():
288- plugins .send ("album_matched" , match = candidate )
289285
290286 rec = _recommendation (list (candidates .values ()))
291287 log .debug ("Album ID match recommendation is {}" , rec )
@@ -320,8 +316,6 @@ def tag_album(
320316 items , search_artist , search_name , va_likely
321317 ):
322318 _add_candidate (items , candidates , matched_candidate )
323- if opt_candidate := candidates .get (matched_candidate .identifier ):
324- plugins .send ("album_matched" , match = opt_candidate )
325319
326320 log .debug ("Evaluating {} candidates." , len (candidates ))
327321 # Sort and get the recommendation.
0 commit comments