Fixed summary failing if scene is not part of movie.

This commit is contained in:
DebaucheryLibrarian 2024-05-31 03:49:23 +02:00
parent 73141a4802
commit db0120dcc8
1 changed files with 1 additions and 3 deletions

View File

@ -285,8 +285,6 @@ const { scene } = pageProps;
const playing = ref(false); const playing = ref(false);
const paused = ref(false); const paused = ref(false);
console.log(scene);
const poster = computed(() => { const poster = computed(() => {
if (scene.poster) { if (scene.poster) {
return getPath(scene.poster, 'thumbnail'); return getPath(scene.poster, 'thumbnail');
@ -307,7 +305,7 @@ const propProcessors = {
channel: (sceneInfo) => sceneInfo.channel?.name || sceneInfo.network?.name, channel: (sceneInfo) => sceneInfo.channel?.name || sceneInfo.network?.name,
network: (sceneInfo) => sceneInfo.network?.name || sceneInfo.channel?.name, network: (sceneInfo) => sceneInfo.network?.name || sceneInfo.channel?.name,
actors: (sceneInfo) => sceneInfo.actors.map((actor) => actor.name), actors: (sceneInfo) => sceneInfo.actors.map((actor) => actor.name),
movie: (sceneInfo) => sceneInfo.movies[0].title, movie: (sceneInfo) => sceneInfo.movies[0]?.title,
date: (sceneInfo, format) => formatDate(sceneInfo.effectiveDate, format), date: (sceneInfo, format) => formatDate(sceneInfo.effectiveDate, format),
}; };