fix: myriad typos and issues
This commit is contained in:
parent
21a158602a
commit
be92f3bdf0
64 changed files with 107 additions and 104 deletions
|
@ -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
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
const { DateTime } = require('luxon')
|
||||
|
||||
module.exports = (collection) => {
|
||||
if (!collection || !collection.length) return ''
|
||||
return collection[0].publishedAt
|
||||
|
|
Reference in a new issue