Including all children of included networks, separated included children into dedicated property.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user