Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: console log messages with `no-ui`` (#568)

NTFSvolumed26102b41ac4
diff --git a/cyberdrop_dl/managers/live_manager.py b/cyberdrop_dl/managers/live_manager.py
index 0dfecf1ed..f5845fd7d 100644
--- a/cyberdrop_dl/managers/live_manager.py
+++ b/cyberdrop_dl/managers/live_manager.py
@@ -49,11 +49,11 @@ class LiveManager:
@contextmanager
def live_context_manager(self, layout: RenderableType, stop: bool = False) -> Generator[Live | None]:
- live = self.live if not (10 <= constants.CONSOLE_LEVEL <= 50) else None
try:
self.live.start()
- self.live.update(layout, refresh=True)
- yield live
+ if not (10 <= constants.CONSOLE_LEVEL <= 50):
+ self.live.update(layout, refresh=True)
+ yield self.live
finally:
if stop:
self.live.stop()