chore: scrobbling

This commit is contained in:
Cory Dransfeldt 2024-03-29 22:00:16 -07:00
parent 72b33002f0
commit ba389dab59
No known key found for this signature in database

View file

@ -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