Refactor HVideoTool's configuration and project management: updated project handling in core/project.py, streamlined restoration settings in config.py, and improved documentation in CLAUDE.md. Removed unused parameters and enhanced type hints for better clarity.

This commit is contained in:
Leonid Pershin
2026-06-07 06:33:00 +03:00
parent 9c471ca701
commit ac02ca27a8
16 changed files with 81 additions and 105 deletions
+1 -2
View File
@@ -39,7 +39,7 @@ def apply(config: AppConfig) -> None:
config.default_threshold = float(data["threshold"])
if data.get("restorer"):
config.restorer = data["restorer"]
for key in ("dm_dir", "dm_model", "dm_python", "dm_gpu"):
for key in ("dm_dir", "dm_model", "dm_gpu"):
if key in data:
setattr(config, key, data[key])
@@ -54,7 +54,6 @@ def save(config: AppConfig) -> None:
restorer=config.restorer,
dm_dir=config.dm_dir,
dm_model=config.dm_model,
dm_python=config.dm_python,
dm_gpu=config.dm_gpu,
)
_write(data)