feat: cdn crop artist images
This commit is contained in:
parent
c0ca407b02
commit
e26e78463a
3 changed files with 6 additions and 4 deletions
|
@ -14,7 +14,9 @@ module.exports = async function () {
|
|||
plays: artist['playcount'],
|
||||
rank: artist['@attr']['rank'],
|
||||
image:
|
||||
`https://cdn.coryd.dev/artists/${artist['name'].replace(/\s+/g, '-').toLowerCase()}.jpg` ||
|
||||
`https://cdn.coryd.dev/artists/${artist['name']
|
||||
.replace(/\s+/g, '-')
|
||||
.toLowerCase()}.jpg?height=450&crop=450,450&crop_gravity=center&quality=100&sharpen=true` ||
|
||||
'https://cdn.coryd.dev/artists/missing-artist.jpg',
|
||||
url: artist['mbid']
|
||||
? `https://musicbrainz.org/artist/${artist['mbid']}`
|
||||
|
|
Reference in a new issue