Files
librofm-downloader/tests
AlexKucera bf7e47422f refactor(downloader): extract _finalize_download() from format branches
The three format-strategy blocks in download_book() each duplicated
the same post-download success logic: rename chapters (MP3 only),
download accompanying files, and return a DownloadResult. Extract
a single _finalize_download() helper so each branch reduces to:
attempt download → return _finalize_download(...).

Adding a new format strategy now requires only the download attempt
plus one call to the existing success helper.

Closes #42
2026-06-05 19:12:09 +02:00
..