feat: tv posters
This commit is contained in:
parent
71fd6da548
commit
06484abc42
3 changed files with 38 additions and 27 deletions
|
@ -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')
|
||||
},
|
||||
|
|
Reference in a new issue