mirror of
https://github.com/beetbox/beets.git
synced 2026-03-31 02:33:04 +02:00
plugins: rename notify_info_received->notify_info_yielded
This commit is contained in:
parent
18a14e8005
commit
91d1aa9763
2 changed files with 3 additions and 3 deletions
|
|
@ -540,7 +540,7 @@ def track_for_mbid(recording_id):
|
|||
exc.log(log)
|
||||
|
||||
|
||||
@plugins.notify_info_received(u'albuminfo_received')
|
||||
@plugins.notify_info_yielded(u'albuminfo_received')
|
||||
def albums_for_id(album_id):
|
||||
"""Get a list of albums for an ID."""
|
||||
a = album_for_mbid(album_id)
|
||||
|
|
@ -551,7 +551,7 @@ def albums_for_id(album_id):
|
|||
yield a
|
||||
|
||||
|
||||
@plugins.notify_info_received(u'trackinfo_received')
|
||||
@plugins.notify_info_yielded(u'trackinfo_received')
|
||||
def tracks_for_id(track_id):
|
||||
"""Get a list of tracks for an ID."""
|
||||
t = track_for_mbid(track_id)
|
||||
|
|
|
|||
|
|
@ -490,7 +490,7 @@ def sanitize_choices(choices, choices_all):
|
|||
return res
|
||||
|
||||
|
||||
def notify_info_received(msg):
|
||||
def notify_info_yielded(msg):
|
||||
def decorator(generator):
|
||||
def decorated(*args, **kwargs):
|
||||
for v in generator(*args, **kwargs):
|
||||
|
|
|
|||
Loading…
Reference in a new issue