From c3ce4e71317eebfc5bdefd7fcd10f8d351ce06e5 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 18 Mar 2023 20:02:42 +0800 Subject: [PATCH] fix: azw3 toc format --- src/release/utils/release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/release/utils/release.py b/src/release/utils/release.py index 1db37ec..cc777be 100644 --- a/src/release/utils/release.py +++ b/src/release/utils/release.py @@ -230,7 +230,7 @@ def mobiRelease(metadata: dict, content: dict, mobiType: int = 1) -> None: def azw3Release(metadata: dict, content: dict) -> None: tempDir = tempfile.TemporaryDirectory() # access temporary directory print('Calibre AZW3 Build -> %s' % tempDir.name) - calibreBuild(tempDir.name, '.azw3', [], metadata, content) + calibreBuild(tempDir.name, '.azw3', ['--mobi-toc-at-start'], metadata, content) # TODO: change `[EBOK]` as `[PDOC]` shutil.copy(os.path.join(tempDir.name, './xxrs.azw3'), releaseInfo['azw3']) tempDir.cleanup()