From 8ed8db5526fa0055ebb30528c8a5ba8c5f63207c Mon Sep 17 00:00:00 2001 From: Dave Nesbitt Date: Mon, 20 Jan 2025 15:26:45 +0100 Subject: [PATCH] Fix exception that occurs with a chapter is skipped --- audiblez.py | 1 + 1 file changed, 1 insertion(+) diff --git a/audiblez.py b/audiblez.py index cd5f3f7..f31ea14 100755 --- a/audiblez.py +++ b/audiblez.py @@ -58,6 +58,7 @@ def main(kokoro, file_path, lang, voice, pick_manually, speed): if len(text.strip()) < 10: print(f'Skipping empty chapter {i}') i += 1 + chapter_mp3_files.remove(chapter_filename) continue print(f'Reading chapter {i} ({len(text):,} characters)...') if i == 1: