chore: remove duplicate filters + unnecessary url transform
This commit is contained in:
parent
ffdc2effbc
commit
881aca29c5
2 changed files with 3 additions and 6 deletions
|
@ -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)
|
||||
},
|
||||
}
|
||||
|
|
Reference in a new issue