File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,12 @@ def find_metadata_source_plugins() -> list[MetadataSourcePlugin]:
3535 return [p for p in find_plugins () if hasattr (p , "data_source" )] # type: ignore[misc]
3636
3737
38+ @notify_info_yielded ("albuminfo_received" )
3839def candidates (items , * args , ** kwargs ) -> Iterable [AlbumInfo ]:
3940 """Return matching album candidates from all metadata source plugins."""
4041 for plugin in find_metadata_source_plugins ():
4142 for info in plugin .candidates (items , * args , ** kwargs ):
42- send (
43- "albuminfo_received" ,
44- info = plugin .before_album_info_emitted (items , info ),
45- )
46- yield info
43+ yield plugin .before_album_info_emitted (items , info )
4744
4845
4946@notify_info_yielded ("trackinfo_received" )
@@ -63,10 +60,8 @@ def album_for_id(
6360 """
6461 for plugin in find_metadata_source_plugins ():
6562 if info := plugin .album_for_id (album_id = _id ):
66- send (
67- "albuminfo_received" ,
68- info = plugin .before_album_info_emitted (items , info ),
69- )
63+ info = plugin .before_album_info_emitted (items , info )
64+ send ("albuminfo_received" , info = info )
7065 return info
7166
7267 return None
You can’t perform that action at this time.
0 commit comments