chore: use optimized images
This commit is contained in:
parent
06484abc42
commit
364d59fc9f
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ module.exports = {
|
||||||
)
|
)
|
||||||
: `https://cdn.coryd.dev/albums/${media.name.replace(/\s+/g, '-').toLowerCase()}.jpg`
|
: `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) => {
|
movie: (url, host, cdn) => {
|
||||||
return url.replace(host, cdn).replace('600', '200').replace('900', '300')
|
return url.replace(host, cdn).replace('600', '200').replace('900', '300')
|
||||||
},
|
},
|
||||||
|
|
Reference in a new issue