fix: handle tv shows that include :

This commit is contained in:
Cory Dransfeldt 2023-06-11 09:35:53 -07:00
parent e50cbdeeb0
commit e46de0f1c1
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/${episode.replace(':', '').replace(/\s+/g, '-').toLowerCase()}.jpg`,
cdn: (url, host, cdn) => {
return url.replace(host, cdn)
},