Scraping Perv City updates to network entity.

This commit is contained in:
2020-07-12 05:25:27 +02:00
parent 9c8cfe3bdb
commit 70c60e93ac
20 changed files with 22 additions and 6 deletions

View File

@@ -94,7 +94,10 @@ async function scrapeReleases(scraper, entity, preData, upcoming = false) {
return accReleases;
}
const latestReleasesWithEntity = latestReleases.map(release => ({ ...release, entity })); // attach entity the release is assigned to when stored
const latestReleasesWithEntity = latestReleases.map(release => ({
...release,
entity: release.entity || entity, // allow override
})); // attach entity the release is assigned to when stored
const uniqueReleases = argv.redownload
? latestReleasesWithEntity