From de126ad813a8900cab2a57b297464cc0d009c3f6 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 22 Dec 2025 21:23:31 -0800 Subject: [PATCH] ... --- app.py | 4 ++-- ebook2audiobook.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 8a04019b..535e2758 100644 --- a/app.py +++ b/app.py @@ -292,7 +292,7 @@ Tip: to add of silence (1.4 seconds) into your text just use "###" or "[pause]". if any(file.endswith(ext) for ext in ebook_formats): full_path = os.path.abspath(os.path.join(args['ebooks_dir'], file)) args['ebook_list'].append(full_path) - progress_status, passed = f.convert_ebook_batch(args) + progress_status, passed = c.convert_ebook_batch(args) if passed is False: error = f'Conversion failed: {progress_status}' print(error) @@ -303,7 +303,7 @@ Tip: to add of silence (1.4 seconds) into your text just use "###" or "[pause]". error = f'Error: The provided --ebook "{args["ebook"]}" does not exist.' print(error) sys.exit(1) - progress_status, passed = f.convert_ebook(args) + progress_status, passed = c.convert_ebook(args) if passed is False: error = f'Conversion failed: {progress_status}' print(error) diff --git a/ebook2audiobook.sh b/ebook2audiobook.sh index 456055f4..72ee0c5f 100755 --- a/ebook2audiobook.sh +++ b/ebook2audiobook.sh @@ -71,7 +71,7 @@ while (( $# > 0 )); do case "$1" in --*) key="${1#--}" - if [[ -n "$2" && "$2" != --* ]]; then + if [[ -n "$2" && "${2}:-" != --* ]]; then arguments[$key]="$2" shift 2 continue