chore: remove duplicate filters + unnecessary url transform

This commit is contained in:
Cory Dransfeldt 2023-06-06 09:21:16 -07:00
parent ffdc2effbc
commit 881aca29c5
No known key found for this signature in database
2 changed files with 3 additions and 6 deletions

View file

@ -12,10 +12,7 @@ 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`,
movie: (url, host, cdn) => {
return url.replace(host, cdn).replace('600', '200').replace('900', '300')
},
book: (url, host, cdn) => {
cdn: (url, host, cdn) => {
return url.replace(host, cdn)
},
}