Add in downloader parameters

This commit is contained in:
Serene-Arc
2021-07-29 19:10:10 +10:00
parent dbe8733fd4
commit 7bca303b1b
3 changed files with 11 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ class RedditDownloader(RedditConnector):
logger.debug(f'Download filter removed {submission.id} file with URL {submission.url}')
continue
try:
res.download()
res.download({'max_wait_time': self.args.max_wait_time})
except errors.BulkDownloaderException as e:
logger.error(f'Failed to download resource {res.url} in submission {submission.id} '
f'with downloader {downloader_class.__name__}: {e}')