refactor(history): relocate _write_history() function (#40)

Move the `_write_history()` function from `downloader.py` to `history.py`. This refactoring separates persistence logic from download orchestration, ensuring `downloader.py` focuses solely on its core responsibility.
This commit is contained in:
AlexKucera committed 2026-06-05 18:52:50 +02:00
1 parent 2930d163b2
commit bcc1f7efee
7 files changed
+109 -24

No files matched your search

+1 -1
View File
@@ -15,9 +15,9 @@ from librofm_downloader.path import (
OutputPlan,
resolve_output_plan,
)
from librofm_downloader.history import _write_history
from librofm_downloader.downloader import (
DownloadResult,
_write_history,
download_m4b,
download_zip_part,
download_book,