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

Track metadata import: Rename enumeration and indicate modifications #3858

Merged
merged 2 commits into from
May 14, 2021
Merged

Track metadata import: Rename enumeration and indicate modifications #3858

merged 2 commits into from
May 14, 2021

Conversation

uklotzde
Copy link
Contributor

Another small, technical PR:

  • Rename an enumeration to match the function name
  • Return a boolean to indicate if modified/unmodified (propagated from subordinate functions)
  • Minor changes (parameter type & logging)

@uklotzde uklotzde added this to the 2.4.0 milestone May 13, 2021
@github-actions github-actions bot added the ui label May 13, 2021
@@ -105,7 +105,7 @@ class SoundSourceProxy {

/// Controls which (metadata/coverart) and how tags are (re-)imported from
/// audio files when creating a SoundSourceProxy.
enum class ImportTrackMetadataMode {
enum class UpdateTrackFromSourceMode {
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
enum class UpdateTrackFromSourceMode {
enum class UpdateTrackMetadataFromSourceMode {

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have a class TrackMetadata that doesn't include cover art. Since we update the whole track including the cover info just Track is a better fit and it also closely mirrors the function name.

Copy link
Member

Choose a reason for hiding this comment

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

Ok

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The distinction between the different levels of track properties and their naming (TrackMetadata < TrackRecord) could still be improved. But this is not urgent as long as the names are used consistently.

Copy link
Member

@Holzhaus Holzhaus left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@Holzhaus Holzhaus merged commit ed7d683 into mixxxdj:main May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants