mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 10:46:40 +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:
@@ -532,6 +532,13 @@ def buildEPUB(path, chapternames, tomenumber, ischunked):
|
|||||||
|
|
||||||
for aChapter in options.chapters:
|
for aChapter in options.chapters:
|
||||||
pageid = aChapter[0]
|
pageid = aChapter[0]
|
||||||
|
|
||||||
|
if options.dedupecover:
|
||||||
|
if pageid == 0:
|
||||||
|
continue
|
||||||
|
else:
|
||||||
|
pageid -= 1
|
||||||
|
|
||||||
cur_diff = global_diff
|
cur_diff = global_diff
|
||||||
global_diff = 0
|
global_diff = 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user