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

Error when parsing ID strings from Navidrome #7

Open
vonnieda opened this issue Mar 18, 2023 · 0 comments
Open

Error when parsing ID strings from Navidrome #7

vonnieda opened this issue Mar 18, 2023 · 0 comments

Comments

@vonnieda
Copy link

Navidrome uses hex strings for IDs and sunk is trying to convert them to u64s. From: https://www.navidrome.org/docs/developers/subsonic-api/

IDs in Navidrome are always strings, normally MD5 hashes or UUIDs. This is important to mention because, even though the Subsonic API schema specifies IDs as strings, some clients insist in converting IDs to integers

Here's an example album from my library:

_Album { id: "5649bff75a7b36d4789946f420712afa", name: "Freelance Bubblehead", artist: Some("1000 Clowns"), artist_id: Some("0e9ab60a6f701b3a727ef8d774bd00e1"), cover_art: Some("al-5649bff75a7b36d4789946f420712afa_63ebedbf"), song_count: 1, duration: 315, created: "2023-02-14T07:30:55.062040227Z", year: Some(1999), genre: None, song: [] }

I'll fork and try to make a version that uses Strings for IDs and report back.

Thanks so much for this library, looks like it will save me a lot of work!

@vonnieda vonnieda changed the title Doesn't work with Navidrome Error when parsing ID strings from Navidrome Mar 18, 2023
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

No branches or pull requests

1 participant