Skip to content

Bulk asynchronous downloader for multiple file hosts

refactor: create URLs.txt in interactive mode

NTFSvolume4e43556dcebd
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 744933dfc..70ffe9223 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,12 @@ All notable changes to this project will be documented here. For more details, v
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## UNRELEASED
+
+### Changed
+
+- Create URLs.txt in interactive mode if it does not exists
+
## [10.0.0] - 2026-06-28
⚠️**IMPORTANT**
diff --git a/cyberdrop_dl/commands/_compat.py b/cyberdrop_dl/commands/_compat.py
index bf29a89dc..9bbe3219d 100644
--- a/cyberdrop_dl/commands/_compat.py
+++ b/cyberdrop_dl/commands/_compat.py
@@ -10,10 +10,10 @@ logger = logging.getLogger(__name__)
def _check_for_v9_database() -> None:
db = Path("AppData/Cache/cyberdrop.db")
- default = AppData.default()
if not db.exists():
return
+ default = AppData.default()
msg = "\n".join(
(
"Found old database file at '%s'",
@@ -41,16 +41,19 @@ def _move_database(source: Path, dest: Path) -> None:
import shutil
+ dest.parent.mkdir(parents=True, exist_ok=True)
_ = shutil.move(source, dest)
logger.info("Database moved to '%s'", dest)
time.sleep(3)
def _check_for_v9_settings() -> None:
- default = AppData.default()
+
settings = Path("AppData/Configs/Default/settings.yaml")
if not settings.exists():
return
+
+ default = AppData.default()
msg = "\n".join(
(
"Found old config file at '%s'",
diff --git a/cyberdrop_dl/program_ui.py b/cyberdrop_dl/program_ui.py
index 2b7445216..573b1fc20 100644
--- a/cyberdrop_dl/program_ui.py
+++ b/cyberdrop_dl/program_ui.py
@@ -99,8 +99,12 @@ def _edit_config(manager: Manager) -> None:
def _edit_urls() -> None:
+ file = _INPUT_FILE.get()
+ if not file.exists():
+ file.parent.mkdir(parents=True, exist_ok=True)
+ file.touch()
try:
- text_editor.open(_INPUT_FILE.get())
+ text_editor.open(file)
except ValueError as e:
console.error(e)