mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
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.
This commit is contained in:
parent
74c7b39dc8
commit
e4e5e83be6
@ -120,9 +120,9 @@ class DownloadToken(ReusableAsyncContextManager[Tuple[ProgressBar, FileSink]]):
|
|||||||
bar_desc = f"[bold bright_cyan]Downloading[/] {escape(fmt_path(self._path))}"
|
bar_desc = f"[bold bright_cyan]Downloading[/] {escape(fmt_path(self._path))}"
|
||||||
# The "Downloaded ..." message is printed in the output dir, not here
|
# 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)
|
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
|
return bar, sink
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user