Fix no runtime info

This commit is contained in:
Zoe Roux 2023-11-05 10:55:53 +01:00
parent f0d6402529
commit dd62611588
2 changed files with 13 additions and 4 deletions

View File

@ -69,7 +69,12 @@ export const BaseEpisodeP = withImages(
}),
}),
"episodes",
).transform((x) => ({
...x,
href: `/watch/${x.slug}`,
}));
)
.transform((x) => ({
...x,
runtime: x.runtime === 0 ? null : x.runtime,
}))
.transform((x) => ({
...x,
href: `/watch/${x.slug}`,
}));

View File

@ -102,6 +102,10 @@ export const MovieP = withImages(
}),
"movies",
)
.transform((x) => ({
...x,
runtime: x.runtime === 0 ? null : x.runtime,
}))
.transform((x) => {
if (!x.thumbnail && x.poster) {
x.thumbnail = { ...x.poster };