Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send albuminfo_received / trackinfo_received when running mbsync #2922

Merged
merged 2 commits into from
May 10, 2018
Merged

Send albuminfo_received / trackinfo_received when running mbsync #2922

merged 2 commits into from
May 10, 2018

Conversation

iliana
Copy link
Contributor

@iliana iliana commented May 10, 2018

Fixes #2921, and adds a test case to hopefully help future refactors of autotag.hooks not break mbsync events.

I don't think completely removing @plugins.notify_info_yielded is the right thing here, it works really well for album_candidates/item_candidates.

iliana added 2 commits May 9, 2018 21:46
Send events from {album,track}_for_mbid, then remove the decorators from
{albums,tracks}_for_id so that duplicate events are not fired.

When moving to generators and decorators in autotag.hooks (#2249),
albuminfo_received and trackinfo_received stopped being sent from code
directly calling hooks.{album,track}_for_mbid. This is most visible when
trying to write a plugin to interact with mbsync, as the documentation
explicitly says it should work.
@sampsyo
Copy link
Member

sampsyo commented May 10, 2018

Perfect! Thank you for the thoughtful investigation and the clean fix. 👍 ✨ 🐟 🚀 🍰

@sampsyo sampsyo merged commit 1c0a7af into beetbox:master May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants