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

Split release and release-group disambiguation into separate fields. #3025

Merged
merged 2 commits into from
Sep 5, 2018

Conversation

djl
Copy link
Member

@djl djl commented Sep 5, 2018

Here's a pretty rough first attempt at fixing #3024.

releasegroupdisambig seems needlessly long but it does follow the naming conventions of other fields.

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.

Looks good to me! Yeah, I can't think of a shorter/better name either—"rgdisambig," for example, is probably too obscure.

Here are two tiny comments.

@@ -66,6 +66,7 @@ class AlbumInfo(object):
- ``albumstatus``: MusicBrainz release status (Official, etc.)
- ``media``: delivery mechanism (Vinyl, etc.)
- ``albumdisambig``: MusicBrainz release disambiguation comment
- ``releasegroupdisambig``: MusicBrainz release group disambiguation comment
Copy link
Member

Choose a reason for hiding this comment

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

Travis has the most nitpicky style nitpick ever on this line: https://github.com/beetbox/beets/pull/3025/files

@@ -346,13 +346,11 @@ def album_info(release):
info.releasegroup_id = release['release-group']['id']
info.albumstatus = release.get('status')

# Build up the disambiguation string from the release group and release.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe preserving a version of this comment would be useful; for example:

Get the disambiguation strings at the release and release group level.

@djl
Copy link
Member Author

djl commented Sep 5, 2018

Addressed the comments and made Travis green again.

@sampsyo
Copy link
Member

sampsyo commented Sep 5, 2018

Perfect; thanks!!

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