bugfix for tidal

This commit is contained in:
aria blue
2024-04-13 13:11:41 -04:00
parent c8445190e7
commit 263879a573

View File

@@ -9,7 +9,7 @@ export interface RawArtist {
}
export function parseArtist(raw: RawArtist): Artist {
const picturePath = raw.picture?.replace(/-/gm, '/')
const picturePath = raw?.picture?.replace(/-/gm, '/')
const artist: Artist = {
id: raw.id,
url: raw.url ?? `https://www.tidal.com/artist/${raw.id}`,