Fix type issues

This commit is contained in:
2025-11-23 22:19:24 +01:00
parent 019aceb8d9
commit 7ebc0fe504
10 changed files with 1971 additions and 236 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE "kyoo"."seasons" ALTER COLUMN "entries_count" SET DEFAULT 0;

View File

@@ -164,12 +164,8 @@
"tableFrom": "entries", "tableFrom": "entries",
"tableTo": "shows", "tableTo": "shows",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["show_pk"],
"show_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
} }
@@ -179,25 +175,17 @@
"entries_id_unique": { "entries_id_unique": {
"name": "entries_id_unique", "name": "entries_id_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["id"]
"id"
]
}, },
"entries_slug_unique": { "entries_slug_unique": {
"name": "entries_slug_unique", "name": "entries_slug_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["slug"]
"slug"
]
}, },
"entries_showPk_seasonNumber_episodeNumber_unique": { "entries_showPk_seasonNumber_episodeNumber_unique": {
"name": "entries_showPk_seasonNumber_episodeNumber_unique", "name": "entries_showPk_seasonNumber_episodeNumber_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["show_pk", "season_number", "episode_number"]
"show_pk",
"season_number",
"episode_number"
]
} }
}, },
"policies": {}, "policies": {},
@@ -273,12 +261,8 @@
"tableFrom": "entry_translations", "tableFrom": "entry_translations",
"tableTo": "entries", "tableTo": "entries",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["pk"],
"pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
} }
@@ -286,10 +270,7 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"entry_translations_pk_language_pk": { "entry_translations_pk_language_pk": {
"name": "entry_translations_pk_language_pk", "name": "entry_translations_pk_language_pk",
"columns": [ "columns": ["pk", "language"]
"pk",
"language"
]
} }
}, },
"uniqueConstraints": {}, "uniqueConstraints": {},
@@ -381,12 +362,8 @@
"tableFrom": "history", "tableFrom": "history",
"tableTo": "profiles", "tableTo": "profiles",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["profile_pk"],
"profile_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
}, },
@@ -395,12 +372,8 @@
"tableFrom": "history", "tableFrom": "history",
"tableTo": "entries", "tableTo": "entries",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["entry_pk"],
"entry_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
}, },
@@ -409,12 +382,8 @@
"tableFrom": "history", "tableFrom": "history",
"tableTo": "videos", "tableTo": "videos",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["video_pk"],
"video_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "set null", "onDelete": "set null",
"onUpdate": "no action" "onUpdate": "no action"
} }
@@ -534,9 +503,7 @@
"profiles_id_unique": { "profiles_id_unique": {
"name": "profiles_id_unique", "name": "profiles_id_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["id"]
"id"
]
} }
}, },
"policies": {}, "policies": {},
@@ -613,12 +580,8 @@
"tableFrom": "season_translations", "tableFrom": "season_translations",
"tableTo": "seasons", "tableTo": "seasons",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["pk"],
"pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
} }
@@ -626,10 +589,7 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"season_translations_pk_language_pk": { "season_translations_pk_language_pk": {
"name": "season_translations_pk_language_pk", "name": "season_translations_pk_language_pk",
"columns": [ "columns": ["pk", "language"]
"pk",
"language"
]
} }
}, },
"uniqueConstraints": {}, "uniqueConstraints": {},
@@ -773,12 +733,8 @@
"tableFrom": "seasons", "tableFrom": "seasons",
"tableTo": "shows", "tableTo": "shows",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["show_pk"],
"show_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
} }
@@ -788,24 +744,17 @@
"seasons_id_unique": { "seasons_id_unique": {
"name": "seasons_id_unique", "name": "seasons_id_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["id"]
"id"
]
}, },
"seasons_slug_unique": { "seasons_slug_unique": {
"name": "seasons_slug_unique", "name": "seasons_slug_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["slug"]
"slug"
]
}, },
"seasons_showPk_seasonNumber_unique": { "seasons_showPk_seasonNumber_unique": {
"name": "seasons_showPk_seasonNumber_unique", "name": "seasons_showPk_seasonNumber_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["show_pk", "season_number"]
"show_pk",
"season_number"
]
} }
}, },
"policies": {}, "policies": {},
@@ -927,12 +876,8 @@
"tableFrom": "show_translations", "tableFrom": "show_translations",
"tableTo": "shows", "tableTo": "shows",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["pk"],
"pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
} }
@@ -940,10 +885,7 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"show_translations_pk_language_pk": { "show_translations_pk_language_pk": {
"name": "show_translations_pk_language_pk", "name": "show_translations_pk_language_pk",
"columns": [ "columns": ["pk", "language"]
"pk",
"language"
]
} }
}, },
"uniqueConstraints": {}, "uniqueConstraints": {},
@@ -1135,12 +1077,8 @@
"tableFrom": "shows", "tableFrom": "shows",
"tableTo": "shows", "tableTo": "shows",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["collection_pk"],
"collection_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "set null", "onDelete": "set null",
"onUpdate": "no action" "onUpdate": "no action"
} }
@@ -1150,16 +1088,12 @@
"shows_id_unique": { "shows_id_unique": {
"name": "shows_id_unique", "name": "shows_id_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["id"]
"id"
]
}, },
"shows_slug_unique": { "shows_slug_unique": {
"name": "shows_slug_unique", "name": "shows_slug_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["slug"]
"slug"
]
} }
}, },
"policies": {}, "policies": {},
@@ -1266,12 +1200,8 @@
"tableFrom": "roles", "tableFrom": "roles",
"tableTo": "shows", "tableTo": "shows",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["show_pk"],
"show_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
}, },
@@ -1280,12 +1210,8 @@
"tableFrom": "roles", "tableFrom": "roles",
"tableTo": "staff", "tableTo": "staff",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["staff_pk"],
"staff_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
} }
@@ -1376,16 +1302,12 @@
"staff_id_unique": { "staff_id_unique": {
"name": "staff_id_unique", "name": "staff_id_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["id"]
"id"
]
}, },
"staff_slug_unique": { "staff_slug_unique": {
"name": "staff_slug_unique", "name": "staff_slug_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["slug"]
"slug"
]
} }
}, },
"policies": {}, "policies": {},
@@ -1416,12 +1338,8 @@
"tableFrom": "show_studio_join", "tableFrom": "show_studio_join",
"tableTo": "shows", "tableTo": "shows",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["show_pk"],
"show_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
}, },
@@ -1430,12 +1348,8 @@
"tableFrom": "show_studio_join", "tableFrom": "show_studio_join",
"tableTo": "studios", "tableTo": "studios",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["studio_pk"],
"studio_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
} }
@@ -1443,10 +1357,7 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"show_studio_join_show_pk_studio_pk_pk": { "show_studio_join_show_pk_studio_pk_pk": {
"name": "show_studio_join_show_pk_studio_pk_pk", "name": "show_studio_join_show_pk_studio_pk_pk",
"columns": [ "columns": ["show_pk", "studio_pk"]
"show_pk",
"studio_pk"
]
} }
}, },
"uniqueConstraints": {}, "uniqueConstraints": {},
@@ -1506,12 +1417,8 @@
"tableFrom": "studio_translations", "tableFrom": "studio_translations",
"tableTo": "studios", "tableTo": "studios",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["pk"],
"pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
} }
@@ -1519,10 +1426,7 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"studio_translations_pk_language_pk": { "studio_translations_pk_language_pk": {
"name": "studio_translations_pk_language_pk", "name": "studio_translations_pk_language_pk",
"columns": [ "columns": ["pk", "language"]
"pk",
"language"
]
} }
}, },
"uniqueConstraints": {}, "uniqueConstraints": {},
@@ -1592,16 +1496,12 @@
"studios_id_unique": { "studios_id_unique": {
"name": "studios_id_unique", "name": "studios_id_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["id"]
"id"
]
}, },
"studios_slug_unique": { "studios_slug_unique": {
"name": "studios_slug_unique", "name": "studios_slug_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["slug"]
"slug"
]
} }
}, },
"policies": {}, "policies": {},
@@ -1638,12 +1538,8 @@
"tableFrom": "entry_video_join", "tableFrom": "entry_video_join",
"tableTo": "entries", "tableTo": "entries",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["entry_pk"],
"entry_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
}, },
@@ -1652,12 +1548,8 @@
"tableFrom": "entry_video_join", "tableFrom": "entry_video_join",
"tableTo": "videos", "tableTo": "videos",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["video_pk"],
"video_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
} }
@@ -1665,19 +1557,14 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"entry_video_join_entry_pk_video_pk_pk": { "entry_video_join_entry_pk_video_pk_pk": {
"name": "entry_video_join_entry_pk_video_pk_pk", "name": "entry_video_join_entry_pk_video_pk_pk",
"columns": [ "columns": ["entry_pk", "video_pk"]
"entry_pk",
"video_pk"
]
} }
}, },
"uniqueConstraints": { "uniqueConstraints": {
"entry_video_join_slug_unique": { "entry_video_join_slug_unique": {
"name": "entry_video_join_slug_unique", "name": "entry_video_join_slug_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["slug"]
"slug"
]
} }
}, },
"policies": {}, "policies": {},
@@ -1764,25 +1651,17 @@
"videos_id_unique": { "videos_id_unique": {
"name": "videos_id_unique", "name": "videos_id_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["id"]
"id"
]
}, },
"videos_path_unique": { "videos_path_unique": {
"name": "videos_path_unique", "name": "videos_path_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["path"]
"path"
]
}, },
"rendering_unique": { "rendering_unique": {
"name": "rendering_unique", "name": "rendering_unique",
"nullsNotDistinct": true, "nullsNotDistinct": true,
"columns": [ "columns": ["rendering", "part", "version"]
"rendering",
"part",
"version"
]
} }
}, },
"policies": {}, "policies": {},
@@ -1879,12 +1758,8 @@
"tableFrom": "watchlist", "tableFrom": "watchlist",
"tableTo": "profiles", "tableTo": "profiles",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["profile_pk"],
"profile_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
}, },
@@ -1893,12 +1768,8 @@
"tableFrom": "watchlist", "tableFrom": "watchlist",
"tableTo": "shows", "tableTo": "shows",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["show_pk"],
"show_pk" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "cascade", "onDelete": "cascade",
"onUpdate": "no action" "onUpdate": "no action"
}, },
@@ -1907,12 +1778,8 @@
"tableFrom": "watchlist", "tableFrom": "watchlist",
"tableTo": "entries", "tableTo": "entries",
"schemaTo": "kyoo", "schemaTo": "kyoo",
"columnsFrom": [ "columnsFrom": ["next_entry"],
"next_entry" "columnsTo": ["pk"],
],
"columnsTo": [
"pk"
],
"onDelete": "set null", "onDelete": "set null",
"onUpdate": "no action" "onUpdate": "no action"
} }
@@ -1920,10 +1787,7 @@
"compositePrimaryKeys": { "compositePrimaryKeys": {
"watchlist_profile_pk_show_pk_pk": { "watchlist_profile_pk_show_pk_pk": {
"name": "watchlist_profile_pk_show_pk_pk", "name": "watchlist_profile_pk_show_pk_pk",
"columns": [ "columns": ["profile_pk", "show_pk"]
"profile_pk",
"show_pk"
]
} }
}, },
"uniqueConstraints": {}, "uniqueConstraints": {},
@@ -1941,12 +1805,7 @@
"kyoo.entry_type": { "kyoo.entry_type": {
"name": "entry_type", "name": "entry_type",
"schema": "kyoo", "schema": "kyoo",
"values": [ "values": ["episode", "movie", "special", "extra"]
"episode",
"movie",
"special",
"extra"
]
}, },
"kyoo.genres": { "kyoo.genres": {
"name": "genres", "name": "genres",
@@ -1980,21 +1839,12 @@
"kyoo.show_kind": { "kyoo.show_kind": {
"name": "show_kind", "name": "show_kind",
"schema": "kyoo", "schema": "kyoo",
"values": [ "values": ["serie", "movie", "collection"]
"serie",
"movie",
"collection"
]
}, },
"kyoo.show_status": { "kyoo.show_status": {
"name": "show_status", "name": "show_status",
"schema": "kyoo", "schema": "kyoo",
"values": [ "values": ["unknown", "finished", "airing", "planned"]
"unknown",
"finished",
"airing",
"planned"
]
}, },
"kyoo.role_kind": { "kyoo.role_kind": {
"name": "role_kind", "name": "role_kind",
@@ -2012,13 +1862,7 @@
"kyoo.watchlist_status": { "kyoo.watchlist_status": {
"name": "watchlist_status", "name": "watchlist_status",
"schema": "kyoo", "schema": "kyoo",
"values": [ "values": ["watching", "rewatching", "completed", "dropped", "planned"]
"watching",
"rewatching",
"completed",
"dropped",
"planned"
]
} }
}, },
"schemas": { "schemas": {

File diff suppressed because it is too large Load Diff

View File

@@ -169,6 +169,13 @@
"when": 1763924097229, "when": 1763924097229,
"tag": "0023_mqueue-priority", "tag": "0023_mqueue-priority",
"breakpoints": true "breakpoints": true
},
{
"idx": 24,
"version": "7",
"when": 1763932730557,
"tag": "0024_fix-season-count",
"breakpoints": true
} }
] ]
} }

View File

@@ -157,7 +157,7 @@ export const mapProgress = ({ aliased }: { aliased: boolean }) => {
const ret = { const ret = {
time: coalesce(time, sql<number>`0`), time: coalesce(time, sql<number>`0`),
percent: coalesce(percent, sql<number>`0`), percent: coalesce(percent, sql<number>`0`),
playedDate: sql`to_char(${playedDate}, 'YYYY-MM-DD"T"HH24:MI:SS"Z"')`, playedDate: sql<string>`to_char(${playedDate}, 'YYYY-MM-DD"T"HH24:MI:SS"Z"')`,
videoId: sql<string>`${videoId}`, videoId: sql<string>`${videoId}`,
}; };
if (!aliased) return ret; if (!aliased) return ret;

View File

@@ -27,9 +27,9 @@ function getRedirectToImageHandler({ filter }: { filter?: SQL }) {
status, status,
redirect, redirect,
}: { }: {
params: { id: string; image: "poster" | "thumbnail" | "banner" | "logo" }; params: { id?: string; image: "poster" | "thumbnail" | "banner" | "logo" };
headers: { "accept-language": string }; headers: { "accept-language": string };
query: { quality: "high" | "medium" | "low" }; query: { quality?: "high" | "medium" | "low" };
set: Context["set"]; set: Context["set"];
status: Context["status"]; status: Context["status"];
redirect: Context["redirect"]; redirect: Context["redirect"];
@@ -212,12 +212,9 @@ export const imagesH = new Elysia({ tags: ["images"] })
}, },
) )
.guard({ .guard({
headers: t.Object( headers: t.Object({
{ "accept-language": AcceptLanguage(),
"accept-language": AcceptLanguage(), }),
},
{ additionalProperties: true },
),
}) })
.get( .get(
"/studios/:id/logo", "/studios/:id/logo",
@@ -307,6 +304,9 @@ export const imagesH = new Elysia({ tags: ["images"] })
description: "The type of image to retrive.", description: "The type of image to retrive.",
}), }),
}), }),
headers: t.Object({
"accept-language": AcceptLanguage(),
}),
}) })
.get( .get(
"/movies/:id/:image", "/movies/:id/:image",

View File

@@ -2,7 +2,7 @@ import { db } from "~/db";
import { showStudioJoin, studios, studioTranslations } from "~/db/schema"; import { showStudioJoin, studios, studioTranslations } from "~/db/schema";
import { conflictUpdateAllExcept } from "~/db/utils"; import { conflictUpdateAllExcept } from "~/db/utils";
import type { SeedStudio } from "~/models/studio"; import type { SeedStudio } from "~/models/studio";
import { enqueueOptImage, flushImageQueue, ImageTask } from "../images"; import { enqueueOptImage, flushImageQueue, type ImageTask } from "../images";
type StudioI = typeof studios.$inferInsert; type StudioI = typeof studios.$inferInsert;
type StudioTransI = typeof studioTranslations.$inferInsert; type StudioTransI = typeof studioTranslations.$inferInsert;

View File

@@ -13,7 +13,7 @@ import {
varchar, varchar,
} from "drizzle-orm/pg-core"; } from "drizzle-orm/pg-core";
import { shows } from "./shows"; import { shows } from "./shows";
import { image, language, schema, timestamp } from "./utils"; import { image, language, schema, timestamp } from "./utils";
import { entryVideoJoin } from "./videos"; import { entryVideoJoin } from "./videos";
export const entryType = schema.enum("entry_type", [ export const entryType = schema.enum("entry_type", [

View File

@@ -11,7 +11,7 @@ import {
varchar, varchar,
} from "drizzle-orm/pg-core"; } from "drizzle-orm/pg-core";
import { shows } from "./shows"; import { shows } from "./shows";
import { image, language, schema, timestamp } from "./utils"; import { image, language, schema, timestamp } from "./utils";
export const season_extid = () => export const season_extid = () =>
jsonb() jsonb()
@@ -39,7 +39,7 @@ export const seasons = schema.table(
startAir: date(), startAir: date(),
endAir: date(), endAir: date(),
entriesCount: integer().notNull(), entriesCount: integer().notNull().default(0),
availableCount: integer().notNull().default(0), availableCount: integer().notNull().default(0),
externalId: season_extid(), externalId: season_extid(),

View File

@@ -20,6 +20,7 @@ const [resp, body] = await createVideo([
title: "mia", title: "mia",
episodes: [{ season: 1, episode: 13 }], episodes: [{ season: 1, episode: 13 }],
from: "test", from: "test",
history: [],
}, },
part: null, part: null,
path: "/video/mia s1e13.mkv", path: "/video/mia s1e13.mkv",
@@ -33,6 +34,7 @@ const [resp, body] = await createVideo([
episodes: [{ season: 2, episode: 1 }], episodes: [{ season: 2, episode: 1 }],
years: [2017], years: [2017],
from: "test", from: "test",
history: [],
}, },
part: null, part: null,
path: "/video/mia 2017 s2e1.mkv", path: "/video/mia 2017 s2e1.mkv",
@@ -41,7 +43,7 @@ const [resp, body] = await createVideo([
for: [{ slug: `${madeInAbyss.slug}-s2e1` }], for: [{ slug: `${madeInAbyss.slug}-s2e1` }],
}, },
{ {
guess: { title: "bubble", from: "test" }, guess: { title: "bubble", from: "test", history: [] },
part: null, part: null,
path: "/video/bubble.mkv", path: "/video/bubble.mkv",
rendering: "sha5", rendering: "sha5",