feat: cdn crop artist images

This commit is contained in:
Cory Dransfeldt 2023-09-11 15:28:29 -07:00
parent c0ca407b02
commit e26e78463a
No known key found for this signature in database
3 changed files with 6 additions and 4 deletions

View file

@ -51,7 +51,7 @@ module.exports = async function () {
`https://cdn.coryd.dev/tv/${matchedEpisode['name']
.replace(':', '')
.replace(/\s+/g, '-')
.toLowerCase()}.jpg?width=450&height=662&quality=100` ||
.toLowerCase()}.jpg?width=450&height=662&quality=100&sharpen=true` ||
'https://cdn.coryd.dev/tv/missing-tv.jpg',
startingEpisode: matchedEpisode['episode'],
startingSeason: matchedEpisode['season'],
@ -70,7 +70,7 @@ module.exports = async function () {
`https://cdn.coryd.dev/tv/${episode['show']['title']
.replace(':', '')
.replace(/\s+/g, '-')
.toLowerCase()}.jpg?width=450&height=662&quality=100` ||
.toLowerCase()}.jpg?width=450&height=662&quality=100&sharpen=true` ||
'https://cdn.coryd.dev/tv/missing-tv.jpg',
episode: episodeNumber,
season: seasonNumber,