chore: additional fallback images

This commit is contained in:
Cory Dransfeldt 2023-06-25 12:33:31 -07:00
parent e8a00d070a
commit 7c3e71c0c9
No known key found for this signature in database

View file

@ -1,8 +1,10 @@
module.exports = {
artist: (media) =>
`https://cdn.coryd.dev/artists/${media.replace(/\s+/g, '-').toLowerCase()}.jpg`,
`https://cdn.coryd.dev/artists/${media.replace(/\s+/g, '-').toLowerCase()}.jpg` ||
'https://cdn.coryd.dev/artists/missing-artist.jpg',
tv: (episode) =>
`https://cdn.coryd.dev/tv/${episode.replace(':', '').replace(/\s+/g, '-').toLowerCase()}.jpg`,
`https://cdn.coryd.dev/tv/${episode.replace(':', '').replace(/\s+/g, '-').toLowerCase()}.jpg` ||
'https://cdn.coryd.dev/tv/missing-tv.jpg',
cdn: (url, host, cdn) => {
return url.replace(host, cdn)
},