mirror of
https://github.com/santinic/audiblez.git
synced 2025-08-05 16:48:55 +00:00
Fix exception that occurs with a chapter is skipped
This commit is contained in:
parent
173e2fb4c9
commit
8ed8db5526
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ def main(kokoro, file_path, lang, voice, pick_manually, speed):
|
||||||
if len(text.strip()) < 10:
|
if len(text.strip()) < 10:
|
||||||
print(f'Skipping empty chapter {i}')
|
print(f'Skipping empty chapter {i}')
|
||||||
i += 1
|
i += 1
|
||||||
|
chapter_mp3_files.remove(chapter_filename)
|
||||||
continue
|
continue
|
||||||
print(f'Reading chapter {i} ({len(text):,} characters)...')
|
print(f'Reading chapter {i} ({len(text):,} characters)...')
|
||||||
if i == 1:
|
if i == 1:
|
||||||
|
|
Loading…
Add table
Reference in a new issue