forked from DebaucheryLibrarian/traxxx
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,
|
||||
hardMergeKeys: ['actors', 'covers', 'poster', 'trailer', 'teaser'],
|
||||
}),
|
||||
photos: curatedScrapedRelease.photos?.length > 0
|
||||
? curatedScrapedRelease.photos
|
||||
: baseRelease.photos,
|
||||
deep: !!scrapedRelease,
|
||||
entity,
|
||||
};
|
||||
|
|
|
@ -171,7 +171,7 @@ async function getBrowserSession(identifier, options = {}) {
|
|||
|
||||
const tab = await browser.newPage();
|
||||
|
||||
logger.verbose(`Opened puppeteer tab${identifier ? `for ${identifier}` : ''}`);
|
||||
logger.verbose(`Opened puppeteer tab${identifier ? ` for ${identifier}` : ''}`);
|
||||
|
||||
return { browser, tab };
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue