mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-13 23:27:24 -05:00
improve tidal logs, fix soundcloud (for real this time)
This commit is contained in:
@@ -66,7 +66,7 @@ export async function parseAlbum(raw: RawAlbum): Promise<Album> {
|
||||
}
|
||||
if (raw.tracks?.[0]?.artwork_url != undefined) {
|
||||
album.coverArtwork = [
|
||||
await parseCoverArtwork(raw.tracks[0].artwork_url.replace('-large', '-original'))
|
||||
await parseCoverArtwork(raw?.tracks?.[0]?.artwork_url)
|
||||
]
|
||||
}
|
||||
return album
|
||||
@@ -95,7 +95,7 @@ export async function parseTrack(raw: RawTrack): Promise<Track> {
|
||||
}
|
||||
|
||||
if (raw?.artwork_url != undefined) {
|
||||
track.coverArtwork = [await parseCoverArtwork(raw?.artwork_url?.replace('-large', '-original'))]
|
||||
track.coverArtwork = [await parseCoverArtwork(raw?.artwork_url)]
|
||||
}
|
||||
|
||||
return track
|
||||
|
||||
Reference in New Issue
Block a user