feat: movie tags

This commit is contained in:
Cory Dransfeldt 2024-04-20 14:05:40 -07:00
parent 4132c92186
commit 5bc0c97537
No known key found for this signature in database
6 changed files with 21 additions and 7 deletions

View file

@ -12,9 +12,9 @@ export default async function () {
id: item['movie']['ids']['trakt'],
tmdbId: item['movie']['ids']['tmdb'],
description: `${item['movie']['overview']}<br/><br/>`,
tags: item['movie']['genres'],
type: 'movie',
}
if (process.env.ELEVENTY_PRODUCTION === 'false') movie.image = 'https://cd-movies.b-cdn.net'
return movie;
})
@ -41,7 +41,7 @@ export default async function () {
})
const tmdbData = await tmdbRes
const posterPath = tmdbData['poster_path']
movie.image = `https://cd-movies.b-cdn.net/t/p/w500${posterPath}`
movie.image = `https://image.tmdb.org/t/p/w500/${posterPath}`
}
return movies;
}

View file

@ -53,7 +53,6 @@ export default async function () {
type: 'tv',
})
}
if (process.env.ELEVENTY_PRODUCTION === 'false') episodeData[episodeData.length - 1].image = 'https://cd-movies.b-cdn.net'
})
return episodeData.reverse()