Migrating FileDownloader.

This commit is contained in:
Roland 2026-05-06 17:35:06 -06:00
parent 7b6fc60de5
commit a2be7a3d8b
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
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: