From cb7195ab104a50e7f0b01c0c3c05e028c439eec4 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sun, 10 Sep 2023 13:26:08 -0700 Subject: [PATCH] feat: cdn crop tv images --- src/_data/tv.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_data/tv.js b/src/_data/tv.js index e40b0dd2..b00dcb01 100644 --- a/src/_data/tv.js +++ b/src/_data/tv.js @@ -51,7 +51,8 @@ module.exports = async function () { `https://cdn.coryd.dev/tv/${matchedEpisode['name'] .replace(':', '') .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'], startingSeason: matchedEpisode['season'], episode: episodeNumber,