fix qobuz interpreter artist urls

This commit is contained in:
2026-06-10 12:34:37 +02:00
parent fa39582849
commit db26a40415
2 changed files with 19 additions and 0 deletions

View File

@@ -27,6 +27,22 @@ func TestQobuzAlbumURL(t *testing.T) {
}
}
func TestQobuzInterpreterURLParsesAsArtist(t *testing.T) {
inputs := []string{
"https://www.qobuz.com/us-en/interpreter/odezenne/739874",
"https://play.qobuz.com/artist/739874",
}
for _, input := range inputs {
result := Parse(input)
if result == nil {
t.Fatalf("expected parsed url for %q", input)
}
if result.Source != "qobuz" || result.MediaType != "artist" || result.ID != "739874" {
t.Fatalf("unexpected parse result for %q: %+v", input, result)
}
}
}
func TestTidalTrackURL(t *testing.T) {
inputs := []string{
"https://tidal.com/browse/track/3083287",