From e46de0f1c1a2881cc586ab5405e26f8c618824f6 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sun, 11 Jun 2023 09:35:53 -0700 Subject: [PATCH] fix: handle tv shows that include : --- config/mediaFilters.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/mediaFilters.js b/config/mediaFilters.js index c1099f9c..caa9cc80 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/${episode.replace(':', '').replace(/\s+/g, '-').toLowerCase()}.jpg`, cdn: (url, host, cdn) => { return url.replace(host, cdn) },