Skip to content

Commit

Permalink
fix bookmark drift when dedupecover is checked (#772)
Browse files Browse the repository at this point in the history
* remove cover chapter as needed

* just skip cover chapter

* fix space
  • Loading branch information
axu2 authored Nov 11, 2024
1 parent 6c6f591 commit 4e6ee8b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kindlecomicconverter/comic2ebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4e6ee8b

Please sign in to comment.