chore: use optimized images

This commit is contained in:
Cory Dransfeldt 2023-05-27 09:51:38 -07:00
parent 06484abc42
commit 364d59fc9f
No known key found for this signature in database

View file

@ -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/min/${episode.replace(/\s+/g, '-').toLowerCase()}.webp`,
movie: (url, host, cdn) => {
return url.replace(host, cdn).replace('600', '200').replace('900', '300')
},