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

Subsonic: UNKNOWN_ARTIST handling #1464

Merged
merged 2 commits into from
Jul 7, 2024

Conversation

khers
Copy link
Contributor

@khers khers commented Jul 7, 2024

We are playing a little fast and loose with this UKNOWN_ARTIST_ID, it should never escape from the provider code. The first patch here protects get_artist_toptracks() from sending this fake ID to the subsonic server. The second patch logs any time we find an album or track that ends up using UKNOWN_ARTIST.

khers added 2 commits July 7, 2024 18:45
We protect the get_artist_ablums() method this way, add the same check
to get_artist_top_songs().

Signed-off-by: Eric B Munson <eric@munsonfam.org>
We want to be able to track down entries where the metadata is failing
to parse at the provider level (or possible mismatches in
representations between the provider and MA). Log the offending album or
track when we have to use the UNKNOWN_ARTIST.

Signed-off-by: Eric B Munson <eric@munsonfam.org>
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.

LGTM

@marcelveldt marcelveldt merged commit 90e1d7c into music-assistant:main Jul 7, 2024
5 of 6 checks passed
@khers khers deleted the unknown-artists-logs branch July 8, 2024 17:39
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