Migrating FileDownloader.

This commit is contained in:
Roland 2026-05-06 17:35:06 -06:00 • committed by lrnselfreliance
parent 6c3698ccd7
commit a29df682ef
5 changed files with 170 additions and 27 deletions

View file

@ -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: