fix: correct artist portrait image URL construction
The Qobuz CDN pattern for artist portraits is
/images/artists/covers/medium/{hash}.{format}, not
/images/artists/covers/{hash}_600.{format}.
This commit is contained in:
1 parent
7072fbf63d
commit
84a54cc017
2 files changed
+2
-2
No files matched your search
@@ -728,7 +728,7 @@ export function convertPageArtist(response: PageArtistResponse): ArtistDetail {
|
||||
let image: string | undefined;
|
||||
if (response.images?.portrait) {
|
||||
const { hash, format } = response.images.portrait;
|
||||
image = `https://static.qobuz.com/images/artists/covers/${hash}_600.${format}`;
|
||||
image = `https://static.qobuz.com/images/artists/covers/medium/${hash}.${format}`;
|
||||
}
|
||||
|
||||
// Biography: the page endpoint has content but not a separate summary
|
||||
|
||||
@@ -373,7 +373,7 @@
|
||||
let image: { small?: string; thumbnail?: string; large?: string } | undefined;
|
||||
if (item.images?.portrait) {
|
||||
const { hash, format } = item.images.portrait;
|
||||
const url = `https://static.qobuz.com/images/artists/covers/${hash}_600.${format}`;
|
||||
const url = `https://static.qobuz.com/images/artists/covers/medium/${hash}.${format}`;
|
||||
image = { large: url, thumbnail: url, small: url };
|
||||
}
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user