Skip to content

Bulk asynchronous downloader for multiple file hosts

Update ui.py

Jacob3c3ebb773c53
diff --git a/cyberdrop_dl/ui/ui.py b/cyberdrop_dl/ui/ui.py
index e091d563a..19fd63262 100644
--- a/cyberdrop_dl/ui/ui.py
+++ b/cyberdrop_dl/ui/ui.py
@@ -6,6 +6,7 @@ from textwrap import dedent
from typing import TYPE_CHECKING
from InquirerPy import inquirer
+import asyncio
from InquirerPy.validator import PathValidator
from requests import request
from rich import print as rprint
@@ -186,20 +187,24 @@ def program_ui(manager: Manager) -> None:
vi_mode=manager.vi_mode,
).execute()
- # Edit Config
+ # Clear Request Cache
elif action == 4:
+ asyncio.run(manager.cache_manager.request_cache.clear())
+
+ # Edit Config
+ elif action == 5:
edit_config_values_prompt(manager)
# Edit Authentication Values
- elif action == 5:
+ elif action == 6:
edit_authentication_values_prompt(manager)
# Edit Global Settings
- elif action == 6:
+ elif action == 7:
edit_global_settings_prompt(manager)
# Done
- elif action == 7:
+ elif action == 8:
break
elif action == 10: