Replaced queueMethod in media sources for new interval/concurrency options.

This commit is contained in:
DebaucheryLibrarian
2020-11-23 00:38:22 +01:00
parent aa1bba84aa
commit 8688c28d0f
3 changed files with 23 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ function scrapeAll(scenes) {
avatar: [
avatarEl.src.replace(/-\d+x\d+/, ''),
avatarEl.src,
].map(src => ({ src, queueMethod: '1s' })),
].map(src => ({ src, interval: 1000, concurrency: 1 })),
}),
};
}).concat({
@@ -37,12 +37,14 @@ function scrapeAll(scenes) {
release.poster = {
src: query.img('.date-img-swap'),
queueMethod: '1s',
interval: 1000,
concurrency: 1,
};
release.photos = [...Array(photoCount)].map((value, index) => ({
src: `${photoPath}/${String(index + 1).padStart(2, '0')}.jpg`,
queueMethod: '1s',
interval: 1000,
concurrency: 1,
}));
// dates appear to be manually curated