mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-28 01:52:27 -04:00
Filter out non-critcal non-available episodes
This commit is contained in:
@@ -83,6 +83,7 @@ export const entryFilters: FilterDef = {
|
||||
order: { column: entries.order, type: "float" },
|
||||
runtime: { column: entries.runtime, type: "float" },
|
||||
airDate: { column: entries.airDate, type: "date" },
|
||||
content: { column: entries.content, type: "enum", values: EntryContent.enum },
|
||||
playedDate: { column: entryProgressQ.playedDate, type: "date" },
|
||||
isAvailable: { column: isNotNull(entries.availableSince), type: "bool" },
|
||||
};
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
import { t } from "elysia";
|
||||
import { Image } from "../utils/image";
|
||||
|
||||
export const EntryContent = t.Union([
|
||||
t.Literal("story"),
|
||||
t.Literal("recap"),
|
||||
t.Literal("filler"),
|
||||
t.Literal("ova"),
|
||||
]);
|
||||
export const EntryContent = t.UnionEnum(["story", "recap", "filler", "ova"]);
|
||||
|
||||
export const BaseEntry = () =>
|
||||
t.Object({
|
||||
|
||||
Reference in New Issue
Block a user