Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Update live_manager.py
Jacob4a372de5ecc1
diff --git a/cyberdrop_dl/managers/live_manager.py b/cyberdrop_dl/managers/live_manager.pyindex 0dccfc101..119e3d0f9 100644--- a/cyberdrop_dl/managers/live_manager.py+++ b/cyberdrop_dl/managers/live_manager.py@@ -1,8 +1,10 @@from __future__ import annotations+from contextlib import asynccontextmanagerfrom typing import TYPE_CHECKING-from rich.live import Live+from rich.console import Console+from rich.live import Livefrom cyberdrop_dl.managers.console_manager import consolefrom cyberdrop_dl.utils.utilities import log@@ -16,8 +18,8 @@ class LiveManager:def __init__(self, manager: Manager):self.manager = managerself.live = Live(auto_refresh=True,- refresh_per_second=self.manager.config_manager.global_settings_data['UI_Options'][- 'refresh_rate'], console=console)+ refresh_per_second=self.manager.config_manager.global_settings_data['UI_Options'][+ 'refresh_rate'], console=console)@asynccontextmanagerasync def get_live(self, layout: Layout, stop=False):@@ -33,29 +35,29 @@ class LiveManager:if not self.manager.args_manager.no_ui:Console().clear()except Exception as e:- await log(f"Issue with rich live {e}", level=10, exc_info=True)+ await log(f"Issue with rich live {e}", level=10, exc_info=True)@asynccontextmanagerasync def get_main_live(self, stop=False):"main UI startup and context manager"layout = self.manager.progress_manager.layoutasync with self.get_live(layout, stop=stop) as live:- yield live+ yield live@asynccontextmanagerasync def get_remove_file_via_hash_live(self, stop=False):layout = self.manager.progress_manager.hash_remove_layoutasync with self.get_live(layout, stop=stop) as live:- yield live+ yield live@asynccontextmanagerasync def get_hash_live(self, stop=False):layout = self.manager.progress_manager.hash_layoutasync with self.get_live(layout, stop=stop) as live:- yield live+ yield live@asynccontextmanagerasync def get_sort_live(self, stop=False):layout = self.manager.progress_manager.sort_layoutasync with self.get_live(layout, stop=stop) as live:- yield live+ yield live