Including all children of included networks, separated included children into dedicated property.

This commit is contained in:
DebaucheryLibrarian
2020-11-26 04:26:52 +01:00
parent 1b407254a7
commit 4e559f63e3
4 changed files with 16 additions and 18 deletions

View File

@@ -230,7 +230,7 @@ async function scrapeChannel(channelEntity, accNetworkReleases) {
async function scrapeNetworkSequential(networkEntity) {
const releases = await Promise.reduce(
networkEntity.children,
networkEntity.includedChildren,
async (chain, channelEntity) => {
const accNetworkReleases = await chain;
const { uniqueReleases, duplicateReleases } = await scrapeChannel(channelEntity, accNetworkReleases);
@@ -248,7 +248,7 @@ async function scrapeNetworkSequential(networkEntity) {
async function scrapeNetworkParallel(networkEntity) {
return Promise.map(
networkEntity.children,
networkEntity.includedChildren,
async (channelEntity) => {
const { uniqueReleases } = await scrapeChannel(channelEntity, networkEntity);