chore: crop updates

This commit is contained in:
Cory Dransfeldt 2023-09-12 05:06:09 -07:00
parent 442a91319d
commit b934a0241f
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ module.exports = async function () {
)
: `https://cdn.coryd.dev/albums/${album['name'].name
.replace(/\s+/g, '-')
.toLowerCase()}.jpg?width=450&crop=450,450&crop_gravity=center&quality=100&sharpen=true`,
.toLowerCase()}.jpg?width=400&crop=500,500&crop_gravity=center&quality=100&sharpen=true`,
url: album['mbid']
? `https://musicbrainz.org/album/${album['mbid']}`
: `https://musicbrainz.org/search?query=${encodeURI(album['name'])}&type=release_group`,

View file

@ -16,7 +16,7 @@ module.exports = async function () {
image:
`https://cdn.coryd.dev/artists/${artist['name']
.replace(/\s+/g, '-')
.toLowerCase()}.jpg?width=450&crop=450,450&crop_gravity=center&quality=100&sharpen=true` ||
.toLowerCase()}.jpg?width=400&crop=500,500&crop_gravity=center&quality=100&sharpen=true` ||
'https://cdn.coryd.dev/artists/missing-artist.jpg',
url: artist['mbid']
? `https://musicbrainz.org/artist/${artist['mbid']}`