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

Added remixer field #4549

Merged
merged 5 commits into from
Nov 19, 2022
Merged

Added remixer field #4549

merged 5 commits into from
Nov 19, 2022

Conversation

Bootjewolf
Copy link
Contributor

@Bootjewolf Bootjewolf commented Nov 15, 2022

Description

Fixes #4428

Adds the remixer field from the musicbrainz database to the beets library. I haven't added any documentation since I didn't know if it is necessary for the changes I made.

To Do

  • Documentation. (If you've add a new command-line flag, for example, find the appropriate page under docs/ to describe it.)
  • Changelog. (Add an entry to docs/changelog.rst near the top of the document.)
  • Tests. (Encouraged but not strictly required.)

Copy link
Member

@sampsyo sampsyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wahoo; looks awesome!! I just have two very tiny comments.

@@ -202,6 +202,19 @@ def _flatten_artist_credit(credit):
)


def _get_remixer_names(relations):
""" Given a list representing the artist relationships extract the names of
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
""" Given a list representing the artist relationships extract the names of
"""Given a list representing the artist relationships extract the names of

@@ -202,6 +202,19 @@ def _flatten_artist_credit(credit):
)


def _get_remixer_names(relations):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should very slightly generalize this for future-proofing… we could make it take the relation type as a parameter, and make it default to 'remixer' for now? I can imagine wanting to collect other relationships in a similar way.

@Bootjewolf
Copy link
Contributor Author

I updated the PR to include you feedback. I also noticed I introduced a failing test by changing the order of the parameters of the _make_track function so I added the remixer parameter as the last parameter.

@sampsyo
Copy link
Member

sampsyo commented Nov 19, 2022

Awesome!! Seems like everything's in order. Thanks again!!

@sampsyo sampsyo merged commit dcba529 into beetbox:master Nov 19, 2022
@Bootjewolf
Copy link
Contributor Author

I really liked working on beets since I also use it myself. This will probably not be my last PR for beets.

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.

Fetch remixer field from MusicBrainz
2 participants