Implement callbacks for downloading
This commit is contained in:
@@ -31,7 +31,7 @@ class Gallery(BaseDownloader):
|
||||
|
||||
if not image_urls:
|
||||
raise SiteDownloaderError('No images found in Reddit gallery')
|
||||
return [Resource(self.post, url) for url in image_urls]
|
||||
return [Resource(self.post, url, Resource.retry_download(url, 300)) for url in image_urls]
|
||||
|
||||
@ staticmethod
|
||||
def _get_links(id_dict: list[dict]) -> list[str]:
|
||||
|
||||
Reference in New Issue
Block a user