Changed deep merge so base release photos are only used when no deep photos are available.

This commit is contained in:
DebaucheryLibrarian 2022-12-29 23:07:08 +01:00
parent 16de5e2a2c
commit cd98b9d147
2 changed files with 4 additions and 1 deletions

View File

@ -190,6 +190,9 @@ async function scrapeRelease(baseRelease, entitiesBySlug, type = 'scene') {
dedupeStringsInArrayValues: true,
hardMergeKeys: ['actors', 'covers', 'poster', 'trailer', 'teaser'],
}),
photos: curatedScrapedRelease.photos?.length > 0
? curatedScrapedRelease.photos
: baseRelease.photos,
deep: !!scrapedRelease,
entity,
};