1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

fix bookmark drift when dedupecover is checked (#772)

* remove cover chapter as needed

* just skip cover chapter

* fix space
This commit is contained in:
Alex Xu
2024-11-11 08:19:04 -08:00
committed by GitHub
parent 6c6f591e45
commit 4e6ee8b59b

View File

@@ -532,6 +532,13 @@ def buildEPUB(path, chapternames, tomenumber, ischunked):
for aChapter in options.chapters:
pageid = aChapter[0]
if options.dedupecover:
if pageid == 0:
continue
else:
pageid -= 1
cur_diff = global_diff
global_diff = 0