Adds MP3 Chapter Renaming and Refactors Core Architecture #46

Merged
AlexKucera merged 17 commits from feature/rename-mp3 into develop 2026-06-06 09:52:08 +02:00
Showing only changes of commit 8619b400f2 - Show all commits
+3
View File
1
@@ -325,6 +325,9 @@ def _finalize_download(
branches in download_book(). Callers only need to attempt their download;
on success they delegate here for everything else.
"""
# Note: 'rename_chapters' param shadows the module-level rename_chapters()
# function. The actual function is called via _rename_and_log(), which has
# its own clean scope, so this is safe.
# MP3-only: optionally rename chapter files
if format == "mp3" and rename_chapters:
_rename_and_log(result_path, mp3_tracks or [], book.title, reporter)
2