chore: scrobbling
This commit is contained in:
parent
df9dcde235
commit
befcd9f005
1 changed files with 3 additions and 2 deletions
|
@ -108,7 +108,7 @@ export default async (request) => {
|
||||||
image: `https://cdn.coryd.dev/artists/${sanitizeMediaString(artist).replace(/\s+/g, '-').toLowerCase()}.jpg`
|
image: `https://cdn.coryd.dev/artists/${sanitizeMediaString(artist).replace(/\s+/g, '-').toLowerCase()}.jpg`
|
||||||
}
|
}
|
||||||
artistInfo = artistObj
|
artistInfo = artistObj
|
||||||
artistsMap[artist] = artistObj
|
artistsMap[`${sanitizeMediaString(artist).replace(/\s+/g, '-').toLowerCase()}`] = artistObj
|
||||||
await artists.setJSON('artists-map', artistsMap)
|
await artists.setJSON('artists-map', artistsMap)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,7 +132,8 @@ export default async (request) => {
|
||||||
image: `https://cdn.coryd.dev/albums/${sanitizeMediaString(artist).replace(/\s+/g, '-').toLowerCase()}-${sanitizeMediaString(album.replace(/[:\/\\,'']+/g
|
image: `https://cdn.coryd.dev/albums/${sanitizeMediaString(artist).replace(/\s+/g, '-').toLowerCase()}-${sanitizeMediaString(album.replace(/[:\/\\,'']+/g
|
||||||
, '').replace(/\s+/g, '-').toLowerCase())}.jpg`
|
, '').replace(/\s+/g, '-').toLowerCase())}.jpg`
|
||||||
}
|
}
|
||||||
albumsMap[album] = albumObj
|
albumsMap[`${sanitizeMediaString(album.replace(/[:\/\\,'']+/g
|
||||||
|
, '').replace(/\s+/g, '-').toLowerCase())}`] = albumObj
|
||||||
await albums.setJSON('albums-map', albumsMap)
|
await albums.setJSON('albums-map', albumsMap)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue