mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix player api mismatch bug
This commit is contained in:
parent
6f3eefb611
commit
010fab93d7
@ -70,8 +70,6 @@ const BaseEpisodeP = ResourceP.merge(ImagesP).extend({
|
||||
*/
|
||||
hls: z.string().transform(imageFn),
|
||||
}),
|
||||
|
||||
show: ShowP.optional()
|
||||
});
|
||||
|
||||
export const EpisodeP = BaseEpisodeP.extend({
|
||||
@ -85,6 +83,8 @@ export const EpisodeP = BaseEpisodeP.extend({
|
||||
* aired episode or this is a movie, it will be null.
|
||||
*/
|
||||
nextEpisode: BaseEpisodeP.nullable().optional(),
|
||||
|
||||
show: ShowP.optional(),
|
||||
})
|
||||
|
||||
/**
|
||||
|
@ -119,7 +119,7 @@ export const Slider = ({
|
||||
height: ts(1),
|
||||
bg: (theme) => theme.overlay0,
|
||||
},
|
||||
smallBar && { transform: [{ scaleY: 0.4 }] },
|
||||
smallBar && { transform: "scaleY(0.4)" as any},
|
||||
])}
|
||||
>
|
||||
{subtleProgress !== undefined && (
|
||||
|
@ -83,7 +83,7 @@ export const LI = ({ children, ...props }: TextProps) => {
|
||||
const { css } = useYoshiki();
|
||||
|
||||
return (
|
||||
<P accessibilityRole={Platform.OS === "web" ? "listitem" : props.accessibilityRole} {...props}>
|
||||
<P role={Platform.OS === "web" ? "listitem" : props.role} {...props}>
|
||||
<Text
|
||||
{...css({
|
||||
height: percent(100),
|
||||
|
@ -113,7 +113,7 @@ export const EpisodeLine = ({
|
||||
focus: {
|
||||
self: focusReset,
|
||||
poster: {
|
||||
transform: [{ scale: 1.1 }],
|
||||
transform: "scale(1.1)" as any,
|
||||
borderColor: (theme: Theme) => theme.accent,
|
||||
},
|
||||
title: {
|
||||
|
@ -103,7 +103,7 @@ export const Hover = ({
|
||||
props,
|
||||
)}
|
||||
>
|
||||
<VideoPoster poster={poster} />
|
||||
<VideoPoster poster={poster} alt={showName}/>
|
||||
<View
|
||||
{...css({
|
||||
marginLeft: { xs: ts(0.5), sm: ts(3) },
|
||||
@ -209,7 +209,7 @@ export const Back = ({
|
||||
);
|
||||
};
|
||||
|
||||
const VideoPoster = ({ poster }: { poster?: KyooImage | null }) => {
|
||||
const VideoPoster = ({ poster, alt }: { poster?: KyooImage | null, alt?: string }) => {
|
||||
const { css } = useYoshiki();
|
||||
|
||||
return (
|
||||
@ -223,6 +223,7 @@ const VideoPoster = ({ poster }: { poster?: KyooImage | null }) => {
|
||||
<Poster
|
||||
src={poster}
|
||||
quality="low"
|
||||
alt={alt}
|
||||
layout={{ width: percent(100) }}
|
||||
{...(css({ position: "absolute", bottom: 0 }) as { style: ImageStyle })}
|
||||
/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user