chore: update crop
This commit is contained in:
parent
e26e78463a
commit
a76b5e0f75
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ module.exports = async function () {
|
||||||
)
|
)
|
||||||
: `https://cdn.coryd.dev/albums/${album['name'].name
|
: `https://cdn.coryd.dev/albums/${album['name'].name
|
||||||
.replace(/\s+/g, '-')
|
.replace(/\s+/g, '-')
|
||||||
.toLowerCase()}.jpg?height=450&crop=400,400&crop_gravity=center&quality=100&sharpen=true`,
|
.toLowerCase()}.jpg?width=450&crop=400,400&crop_gravity=center&quality=100&sharpen=true`,
|
||||||
url: album['mbid']
|
url: album['mbid']
|
||||||
? `https://musicbrainz.org/album/${album['mbid']}`
|
? `https://musicbrainz.org/album/${album['mbid']}`
|
||||||
: `https://musicbrainz.org/search?query=${encodeURI(album['name'])}&type=release_group`,
|
: `https://musicbrainz.org/search?query=${encodeURI(album['name'])}&type=release_group`,
|
||||||
|
|
|
@ -16,7 +16,7 @@ module.exports = async function () {
|
||||||
image:
|
image:
|
||||||
`https://cdn.coryd.dev/artists/${artist['name']
|
`https://cdn.coryd.dev/artists/${artist['name']
|
||||||
.replace(/\s+/g, '-')
|
.replace(/\s+/g, '-')
|
||||||
.toLowerCase()}.jpg?height=450&crop=450,450&crop_gravity=center&quality=100&sharpen=true` ||
|
.toLowerCase()}.jpg?width=450&crop=450,450&crop_gravity=center&quality=100&sharpen=true` ||
|
||||||
'https://cdn.coryd.dev/artists/missing-artist.jpg',
|
'https://cdn.coryd.dev/artists/missing-artist.jpg',
|
||||||
url: artist['mbid']
|
url: artist['mbid']
|
||||||
? `https://musicbrainz.org/artist/${artist['mbid']}`
|
? `https://musicbrainz.org/artist/${artist['mbid']}`
|
||||||
|
|
Reference in a new issue