mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-11 17:16:46 -05:00
Fix details page query
This commit is contained in:
parent
fb74ed30f8
commit
ebad8f32a4
@ -25,9 +25,11 @@ import {
|
||||
import { WatchListInfo } from "~/components/items/watchlist-info";
|
||||
import { Rating } from "~/components/rating";
|
||||
import {
|
||||
Collection,
|
||||
type Genre,
|
||||
type KImage,
|
||||
Show,
|
||||
Movie,
|
||||
Serie,
|
||||
type Studio,
|
||||
type WatchStatusV,
|
||||
} from "~/models";
|
||||
@ -827,8 +829,8 @@ export const Header = ({
|
||||
Header.query = (
|
||||
kind: "serie" | "movie" | "collection",
|
||||
slug: string,
|
||||
): QueryIdentifier<Show> => ({
|
||||
parser: Show,
|
||||
): QueryIdentifier<Serie | Movie | Collection> => ({
|
||||
parser: kind === "serie" ? Serie : kind === "movie" ? Movie : Collection,
|
||||
path: ["api", `${kind}s`, slug],
|
||||
params: {
|
||||
with: ["studios", ...(kind === "serie" ? ["firstEntry", "nextEntry"] : [])],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user