fix: myriad typos and issues

This commit is contained in:
Cory Dransfeldt 2023-05-06 17:33:00 -07:00
parent 21a158602a
commit be92f3bdf0
No known key found for this signature in database
64 changed files with 107 additions and 104 deletions

View file

@ -4,9 +4,8 @@ module.exports = {
artist: (media) =>
`https://cdn.coryd.dev/artists/${media.replace(/\s+/g, '-').toLowerCase()}.jpg`,
album: (media) => {
const img = !ALBUM_DENYLIST.includes(media.name.replace(/\s+/g, '-').toLowerCase())
return !ALBUM_DENYLIST.includes(media.name.replace(/\s+/g, '-').toLowerCase())
? media.image[media.image.length - 1]['#text']
: `https://cdn.coryd.dev/artists/${media.name.replace(/\s+/g, '-').toLowerCase()}.jpg`
return img
},
}

View file

@ -1,5 +1,3 @@
const { DateTime } = require('luxon')
module.exports = (collection) => {
if (!collection || !collection.length) return ''
return collection[0].publishedAt