I solved it by adding a second total_items = total_items.concat(items); right before the function resolves itself.
Idk if that solves every case of this issue, since I didn'tunderstand it for real... I guess the counter couldn't deal with every time it captures an asset.
if (items.length <= 0) {
this.page.off('response');
total_items = total_items.concat(items); //👈
resolve(total_items);
break;
} else {
total_items = total_items.concat(items);
console.log(`${total_items.length} collected so far`)
offset += count;
}
EDIT - didn't solve at all, it skips 4 or 5 files at random.
I solved it by adding a second
total_items = total_items.concat(items);right before the function resolves itself.Idk if that solves every case of this issue, since I didn'tunderstand it for real... I guess the counter couldn't deal with every time it captures an asset.
EDIT - didn't solve at all, it skips 4 or 5 files at random.