mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 04:04:21 -04:00
Add history & from in the guess type
This commit is contained in:
parent
e9c7cfe832
commit
7906374553
@ -36,22 +36,37 @@ export const Video = t.Object({
|
|||||||
createdAt: t.String({ format: "date-time" }),
|
createdAt: t.String({ format: "date-time" }),
|
||||||
|
|
||||||
guess: t.Optional(
|
guess: t.Optional(
|
||||||
t.Object(
|
t.Recursive((Self) =>
|
||||||
{
|
t.Object(
|
||||||
title: t.Optional(t.String()),
|
{
|
||||||
year: Guess(t.Integer()),
|
title: t.String(),
|
||||||
season: Guess(t.Integer()),
|
year: Guess(t.Integer()),
|
||||||
episode: Guess(t.Integer()),
|
season: Guess(t.Integer()),
|
||||||
},
|
episode: Guess(t.Integer()),
|
||||||
{
|
// TODO: maybe replace "extra" with the `extraKind` value (aka behind-the-scene, trailer, etc)
|
||||||
additionalProperties: true,
|
type: t.Optional(t.UnionEnum(["episode", "movie", "extra"])),
|
||||||
description: comment`
|
|
||||||
Metadata guessed from the filename. Kyoo can use those informations to bypass
|
from: t.String({
|
||||||
the scanner/metadata fetching and just register videos to movies/entries that already
|
description: "Name of the tool that made the guess",
|
||||||
exists. If Kyoo can't find a matching movie/entry, this information will be sent to
|
}),
|
||||||
the scanner.
|
history: t.Array(t.Omit(Self, ["history"]), {
|
||||||
`,
|
default: [],
|
||||||
},
|
description: comment`
|
||||||
|
When another tool refines the guess or a user manually edit it, the history of the guesses
|
||||||
|
are kept in this \`history\` value.
|
||||||
|
`,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
additionalProperties: true,
|
||||||
|
description: comment`
|
||||||
|
Metadata guessed from the filename. Kyoo can use those informations to bypass
|
||||||
|
the scanner/metadata fetching and just register videos to movies/entries that already
|
||||||
|
exists. If Kyoo can't find a matching movie/entry, this information will be sent to
|
||||||
|
the scanner.
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user