Skip to content

Refactor of metadata plugin and opt in all metadata plugins to new baseclass. #5764

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

Closed

Conversation

semohr
Copy link
Contributor

@semohr semohr commented May 6, 2025

Description

At the moment the MetaDataSourcePlugin has multiple responsibilities:

  • fetch data via _search api
  • defines contract for interaction within the beets autotag lookup

I propose splitting these responsibilities, as it would enable us to use the MetaDataSourcePlugin baseclass with plugins that use external packages to fetch data.

This follows from discussion in #5761 and #5748 (comment).

Feedback is highly appreciated, as this is mainly architectural decision and I would prefer if the new behavior is a shared consensus.

To Do

  • Opt in plugins into the new MetaDataSourcePlugin
    • Spotify
    • Musicbrainz
    • Deezer
    • Beatport
    • Chroma
    • Disccogs
  • Remove old MetaDataSourcePlugin and related functions
  • Documentation on the ontology of plugins
  • Changelog

Copy link

github-actions bot commented May 6, 2025

Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry.

@semohr semohr mentioned this pull request May 6, 2025
3 tasks
@semohr semohr changed the base branch from master to make-musicbrainz-a-plugin May 6, 2025 09:48
@semohr semohr force-pushed the metadatasource-cleanup branch 2 times, most recently from ce82a20 to dc93afc Compare May 6, 2025 10:22
@semohr semohr changed the base branch from make-musicbrainz-a-plugin to restructure-id-extractors May 6, 2025 10:22
@snejus snejus force-pushed the restructure-id-extractors branch 2 times, most recently from a231e4d to c51da3f Compare May 6, 2025 21:23
@snejus snejus force-pushed the restructure-id-extractors branch from c51da3f to fb0d14e Compare May 6, 2025 21:25
@snejus snejus force-pushed the restructure-id-extractors branch from fb0d14e to 409f3ab Compare May 7, 2025 21:57
@snejus snejus force-pushed the restructure-id-extractors branch from 409f3ab to ad0a784 Compare May 8, 2025 03:10
@snejus snejus force-pushed the restructure-id-extractors branch from ad0a784 to 2ee5de4 Compare May 8, 2025 20:55
@semohr semohr changed the base branch from restructure-id-extractors to make-musicbrainz-a-plugin May 13, 2025 13:14
@snejus snejus force-pushed the make-musicbrainz-a-plugin branch 3 times, most recently from edf688f to f1dc75f Compare May 17, 2025 02:32
@snejus snejus deleted the branch beetbox:make-musicbrainz-a-plugin May 17, 2025 02:40
@snejus snejus closed this May 17, 2025
@semohr
Copy link
Contributor Author

semohr commented May 17, 2025

Well I don't think we can reopen this as the source branch is deleted now. I guess I create another PR for this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants