diff --git a/api/scrobble.js b/api/scrobble.js index 964d3cf7..a2651b6c 100644 --- a/api/scrobble.js +++ b/api/scrobble.js @@ -120,7 +120,7 @@ export default async (request) => { console.log(err); return {} }); - const mbid = albumRes['album']['mbid'] + const mbid = albumRes['album']['mbid'] || '' const albumObj = { mbid, image: `https://cdn.coryd.dev/albums/${encodeURIComponent(sanitizeMediaString(artist).replace(/\s+/g, '-').toLowerCase())}-${encodeURIComponent(sanitizeMediaString(album.replace(/[:\/\\,'']+/g