feat: tv posters

This commit is contained in:
Cory Dransfeldt 2023-05-26 20:25:18 -07:00
parent 71fd6da548
commit 06484abc42
No known key found for this signature in database
3 changed files with 38 additions and 27 deletions

View file

@ -11,6 +11,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')
},