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

Fix: Use Deezer record_type to set the album type of Deezer albums #1905

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

awhiemstra
Copy link
Contributor

The type property of an album in the Deezer api contains the resource type, not the album type. The album type is called record_type instead.

Make sure to explicitly convert between types, so that we can handle unrecognised album types as "unknown". Additionally, compilations are called "compile" in the Deezer API so we also need to handle that.

The type property of an album in the Deezer api contains the resource
type, not the album type. The album type is called record_type instead.

Make sure to explicitly convert between types, so that we can handle
unrecognised album types as "unknown". Additionally, compilations are
called "compile" in the Deezer API so we also need to handle that.
@awhiemstra awhiemstra force-pushed the work/ahiemstra/albumtype branch from db497f4 to 19d33b3 Compare January 23, 2025 14:24
Copy link
Member

@marcelveldt marcelveldt left a comment

Choose a reason for hiding this comment

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

Thanks @awhiemstra !

@marcelveldt marcelveldt merged commit 70ac379 into music-assistant:dev Jan 23, 2025
4 checks passed
@awhiemstra awhiemstra deleted the work/ahiemstra/albumtype branch January 28, 2025 16:18
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