From e4e5e83be62c92ebbade8c8b7ea077c171f21e7f Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 23 May 2021 18:39:43 +0200 Subject: [PATCH] Fix downloader using crawl bar Looks like I made a dumb copy-paste error. Now the download bar shows the proper progress and speed again. --- PFERD/crawler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PFERD/crawler.py b/PFERD/crawler.py index e3aef8f..e73ce72 100644 --- a/PFERD/crawler.py +++ b/PFERD/crawler.py @@ -120,9 +120,9 @@ class DownloadToken(ReusableAsyncContextManager[Tuple[ProgressBar, FileSink]]): bar_desc = f"[bold bright_cyan]Downloading[/] {escape(fmt_path(self._path))}" # The "Downloaded ..." message is printed in the output dir, not here - await self._stack.enter_async_context(self._limiter.limit_crawl()) + await self._stack.enter_async_context(self._limiter.limit_download()) sink = await self._stack.enter_async_context(self._fs_token) - bar = self._stack.enter_context(log.crawl_bar(bar_desc)) + bar = self._stack.enter_context(log.download_bar(bar_desc)) return bar, sink