From 7c3e71c0c9d4390b4f9a697b222e0ae636f12315 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sun, 25 Jun 2023 12:33:31 -0700 Subject: [PATCH] chore: additional fallback images --- config/mediaFilters.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/mediaFilters.js b/config/mediaFilters.js index 5b686ffb..99a39496 100644 --- a/config/mediaFilters.js +++ b/config/mediaFilters.js @@ -1,8 +1,10 @@ module.exports = { artist: (media) => - `https://cdn.coryd.dev/artists/${media.replace(/\s+/g, '-').toLowerCase()}.jpg`, + `https://cdn.coryd.dev/artists/${media.replace(/\s+/g, '-').toLowerCase()}.jpg` || + 'https://cdn.coryd.dev/artists/missing-artist.jpg', tv: (episode) => - `https://cdn.coryd.dev/tv/${episode.replace(':', '').replace(/\s+/g, '-').toLowerCase()}.jpg`, + `https://cdn.coryd.dev/tv/${episode.replace(':', '').replace(/\s+/g, '-').toLowerCase()}.jpg` || + 'https://cdn.coryd.dev/tv/missing-tv.jpg', cdn: (url, host, cdn) => { return url.replace(host, cdn) },