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 = {