mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 22:46:20 -05:00
Migrating FileDownloader.
This commit is contained in:
parent
7b6fc60de5
commit
a2be7a3d8b
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