Added media attempt configuration, default from 3 to 2, 1 for JJ scraper.
This commit is contained in:
@@ -655,7 +655,7 @@ streamQueue.define('fetchStreamSource', async ({ source, tempFileTarget, hashStr
|
||||
});
|
||||
|
||||
async function fetchSource(source, baseMedia) {
|
||||
const maxAttempts = source.attempts || argv.mediaAttempts || 3;
|
||||
const maxAttempts = source.attempts || argv.mediaAttempts;
|
||||
|
||||
logger.silly(`Fetching media from ${source.src}`);
|
||||
logger.debug(`Memory usage before media fetch: ${process.memoryUsage.rss() / 1000000} MB (${source.src})`);
|
||||
|
||||
Reference in New Issue
Block a user