Creation automatique des dossiers tmdbintegral/* au premier run

This commit is contained in:
unfr
2026-04-23 10:56:45 +02:00
parent 7170953606
commit f9745a2390
3 changed files with 6 additions and 1 deletions

View File

@@ -68,6 +68,8 @@ function removeOrphans(type, ids) {
}
export async function syncType(type) {
const baseDir = type === 'movie' ? JUSTWATCH_MOVIE_DIR : JUSTWATCH_TV_DIR;
await mkdir(baseDir, { recursive: true });
const ids = await readMasterIds(type);
const limiter = new Limiter(DOWNLOAD_CONCURRENCY);
const tasks = [];