From 364d59fc9f7a5c49a803dc625008e659f98a1b12 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 27 May 2023 09:51:38 -0700 Subject: [PATCH] chore: use optimized images --- config/mediaFilters.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/mediaFilters.js b/config/mediaFilters.js index 38fd9c37..832eb833 100644 --- a/config/mediaFilters.js +++ b/config/mediaFilters.js @@ -11,7 +11,8 @@ module.exports = { ) : `https://cdn.coryd.dev/albums/${media.name.replace(/\s+/g, '-').toLowerCase()}.jpg` }, - tv: (episode) => `https://cdn.coryd.dev/tv/${episode.replace(/\s+/g, '-').toLowerCase()}.jpg`, + tv: (episode) => + `https://cdn.coryd.dev/tv/min/${episode.replace(/\s+/g, '-').toLowerCase()}.webp`, movie: (url, host, cdn) => { return url.replace(host, cdn).replace('600', '200').replace('900', '300') },