mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Migrating FileDownloader.
This commit is contained in:
parent
6c3698ccd7
commit
a29df682ef
5 changed files with 170 additions and 27 deletions
|
|
@ -76,7 +76,8 @@ class ArchiveDownloader(Downloader, ABC):
|
|||
|
||||
return PreparedArchive(url=download.url, destination=destination, settings=settings)
|
||||
|
||||
async def execute_download(self, prepared: PreparedArchive, ctx: DownloadContext) -> ExecutedArchive:
|
||||
async def execute_download(self, prepared: PreparedArchive, ctx: DownloadContext,
|
||||
download: Download = None) -> ExecutedArchive:
|
||||
"""Run the archive container or local singlefile + readability/screenshot extraction,
|
||||
then write the artifacts to disk. No DB."""
|
||||
if DOCKERIZED or PYTEST:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue