Changed deep merge so base release photos are only used when no deep photos are available.
This commit is contained in:
parent
16de5e2a2c
commit
cd98b9d147
|
@ -190,6 +190,9 @@ async function scrapeRelease(baseRelease, entitiesBySlug, type = 'scene') {
|
||||||
dedupeStringsInArrayValues: true,
|
dedupeStringsInArrayValues: true,
|
||||||
hardMergeKeys: ['actors', 'covers', 'poster', 'trailer', 'teaser'],
|
hardMergeKeys: ['actors', 'covers', 'poster', 'trailer', 'teaser'],
|
||||||
}),
|
}),
|
||||||
|
photos: curatedScrapedRelease.photos?.length > 0
|
||||||
|
? curatedScrapedRelease.photos
|
||||||
|
: baseRelease.photos,
|
||||||
deep: !!scrapedRelease,
|
deep: !!scrapedRelease,
|
||||||
entity,
|
entity,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue