From 1f7844b8a597928ea1939a109e0110ae7d18cb86 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 23 Nov 2025 14:57:07 +0100 Subject: [PATCH] Fix api images path (#1175) --- .env.example | 2 ++ api/src/controllers/seed/images.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 38b4f88c..e54ceb79 100644 --- a/.env.example +++ b/.env.example @@ -10,6 +10,8 @@ LIBRARY_ROOT=./video # You should set this to a path where kyoo can write large amount of data, this is used as a cache by the transcoder. # It will automatically be cleaned up on kyoo's startup/shutdown/runtime. CACHE_ROOT=/tmp/kyoo_cache +# Where to store downloaded images of the shows +IMAGES_PATH="./images"; # A pattern (regex) to ignore files. LIBRARY_IGNORE_PATTERN=".*/[dD]ownloads?/.*" diff --git a/api/src/controllers/seed/images.ts b/api/src/controllers/seed/images.ts index 7eaefcc4..f80b0d53 100644 --- a/api/src/controllers/seed/images.ts +++ b/api/src/controllers/seed/images.ts @@ -10,7 +10,7 @@ import { mqueue } from "~/db/schema/mqueue"; import type { Image } from "~/models/utils"; import { getFile } from "~/utils"; -export const imageDir = process.env.IMAGES_PATH ?? "./images"; +export const imageDir = process.env.IMAGES_PATH ?? "/images"; export const defaultBlurhash = "000000"; type ImageTask = {