From ceaf5a32177e34d40b3d39f19d9c28f7791071cf Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sat, 5 Feb 2022 17:14:34 +0100 Subject: [PATCH] Not storing shallow movie data when argument is disabled. --- src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 4a36daf2..27774b9b 100644 --- a/src/app.js +++ b/src/app.js @@ -177,7 +177,7 @@ async function init() { const moviesFromFile = argv.moviesFile && await getFileEntries(argv.moviesFile); const movieUrls = (argv.movie || []).concat(moviesFromFile || []); - const sceneMovies = deepScenes ? deepScenes.filter((scene) => scene.movie).map((scene) => ({ ...scene.movie, entity: scene.entity })) : []; + const sceneMovies = deepScenes && argv.sceneMovies ? deepScenes.filter((scene) => scene.movie).map((scene) => ({ ...scene.movie, entity: scene.entity })) : []; const deepMovies = argv.sceneMovies || argv.movie || movieUrls ? await fetchMovies([...movieUrls, ...(sceneMovies || []), ...[]]) : sceneMovies; const movieScenes = argv.movieScenes ? deepMovies.map((movie) => movie.scenes?.map((scene) => ({ ...scene, movie, entity: movie.entity }))).flat().filter(Boolean) : [];