feat: cdn crop tv images
This commit is contained in:
parent
663b45b14f
commit
cb7195ab10
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ module.exports = async function () {
|
||||||
`https://cdn.coryd.dev/tv/${matchedEpisode['name']
|
`https://cdn.coryd.dev/tv/${matchedEpisode['name']
|
||||||
.replace(':', '')
|
.replace(':', '')
|
||||||
.replace(/\s+/g, '-')
|
.replace(/\s+/g, '-')
|
||||||
.toLowerCase()}.jpg` || 'https://cdn.coryd.dev/tv/missing-tv.jpg',
|
.toLowerCase()}.jpg?crop=450,662&crop_gravity=center&quality=100` ||
|
||||||
|
'https://cdn.coryd.dev/tv/missing-tv.jpg',
|
||||||
startingEpisode: matchedEpisode['episode'],
|
startingEpisode: matchedEpisode['episode'],
|
||||||
startingSeason: matchedEpisode['season'],
|
startingSeason: matchedEpisode['season'],
|
||||||
episode: episodeNumber,
|
episode: episodeNumber,
|
||||||
|
|
Reference in a new issue