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

@@ -139,6 +139,8 @@ function removeOrphans(type, sortedIds) {
}
export async function syncType(type) {
const baseDir = type === 'movie' ? MOVIE_DIR : TV_DIR;
await mkdir(baseDir, { recursive: true });
const updates = await findChanges(type);
const ids = await readMasterIds(type);