diff --git a/api/src/base.ts b/api/src/base.ts index 95994a0f..5f8d0dc6 100644 --- a/api/src/base.ts +++ b/api/src/base.ts @@ -14,7 +14,7 @@ import { showsH } from "./controllers/shows/shows"; import { staffH } from "./controllers/staff"; import { studiosH } from "./controllers/studios"; import { videosReadH, videosWriteH } from "./controllers/videos"; -import { KError } from "./models/error"; +import type { KError } from "./models/error"; export const base = new Elysia({ name: "base" }) .onError(({ code, error }) => { diff --git a/api/src/controllers/videos.ts b/api/src/controllers/videos.ts index 57b987f0..c151cec9 100644 --- a/api/src/controllers/videos.ts +++ b/api/src/controllers/videos.ts @@ -804,7 +804,7 @@ export const videosReadH = new Elysia({ prefix: "/videos", tags: ["videos"] }) 422: KError, }, }, - ) + ); export const videosWriteH = new Elysia({ prefix: "/videos", tags: ["videos"] }) .model({ diff --git a/scanner/scanner/__init__.py b/scanner/scanner/__init__.py index 62107f20..152b470a 100644 --- a/scanner/scanner/__init__.py +++ b/scanner/scanner/__init__.py @@ -59,6 +59,7 @@ async def background_startup( _ = tg.create_task(scanner.monitor()) _ = tg.create_task(scan()) + async def cancel(): raise CancelledError()