fixed a bug on the config & now backend does use config values

This commit is contained in:
2026-01-01 18:12:27 +01:00
parent 01ae038a8b
commit 74f6c9bf62
5 changed files with 54 additions and 15 deletions

View File

@@ -7,8 +7,10 @@ import fs from 'fs';
import path from 'path';
import AdmZip from 'adm-zip';
import { spawn } from 'child_process';
const { values } = loadConfig();
const FFMPEG_PATH = 'D:\\ffmpeg\\bin\\ffmpeg.exe';
const FFMPEG_PATH =
values.paths?.ffmpeg || 'ffmpeg';
type AnimeDownloadParams = {
anilistId: number;