mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-26 23:43:53 +01:00
show-book -> view-book in markdown highlights export
This commit is contained in:
parent
11ad7120ab
commit
d7a7dd755f
2 changed files with 2 additions and 2 deletions
|
|
@ -191,7 +191,7 @@ def exported_data(self):
|
|||
for a in group:
|
||||
atype = a['type']
|
||||
if library_id:
|
||||
link_prefix = f'calibre://show-book/{library_id}/{book_id}/{a["format"]}?open_at='
|
||||
link_prefix = f'calibre://view-book/{library_id}/{book_id}/{a["format"]}?open_at='
|
||||
else:
|
||||
link_prefix = None
|
||||
if atype == 'highlight':
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ def exported_data(self):
|
|||
library_id = bld['library_id']
|
||||
if library_id:
|
||||
library_id = '_hex_-' + library_id.encode('utf-8').hex()
|
||||
link_prefix = f'calibre://show-book/{library_id}/{book_id}/{book_fmt}?open_at='
|
||||
link_prefix = f'calibre://view-book/{library_id}/{book_id}/{book_fmt}?open_at='
|
||||
fmt = self.export_format.currentData()
|
||||
if fmt == 'calibre_highlights':
|
||||
return json.dumps({
|
||||
|
|
|
|||
Loading…
Reference in a new issue