mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 09:25:58 +01:00
...
This commit is contained in:
commit
fd8eef3e39
1 changed files with 2 additions and 2 deletions
|
|
@ -272,7 +272,7 @@ def get_bookmark_data(self, path):
|
|||
stream = StringIO(f.read())
|
||||
data = StreamSlicer(stream)
|
||||
self.last_read = int(unpack('>I', data[5:9])[0])
|
||||
self.last_read_location = self.last_read/33
|
||||
self.last_read_location = self.last_read/33.33 + 1
|
||||
entries, = unpack('>I', data[9:13])
|
||||
current_entry = 0
|
||||
e_base = 0x0d
|
||||
|
|
@ -294,7 +294,7 @@ def get_bookmark_data(self, path):
|
|||
|
||||
if self.book_format in ['tpz','azw1']:
|
||||
# *** This needs fine-tuning
|
||||
displayed_location = location/33
|
||||
displayed_location = location/33.33 + 1
|
||||
elif self.book_format == 'pdf':
|
||||
# *** This needs testing
|
||||
displayed_location = location
|
||||
|
|
|
|||
Loading…
Reference in a new issue