fix: handle tv shows that include :
This commit is contained in:
parent
e50cbdeeb0
commit
e46de0f1c1
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/${episode.replace(':', '').replace(/\s+/g, '-').toLowerCase()}.jpg`,
|
||||||
cdn: (url, host, cdn) => {
|
cdn: (url, host, cdn) => {
|
||||||
return url.replace(host, cdn)
|
return url.replace(host, cdn)
|
||||||
},
|
},
|
||||||
|
|
Reference in a new issue