mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix no runtime info
This commit is contained in:
parent
f0d6402529
commit
dd62611588
@ -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}`,
|
||||
}));
|
||||
|
@ -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 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user