show-book -> view-book in markdown highlights export

This commit is contained in:
Kovid Goyal 2020-12-26 14:33:29 +05:30
parent 11ad7120ab
commit d7a7dd755f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ class Export(Dialog): # {{{
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':

View File

@ -144,7 +144,7 @@ class Export(ExportBase):
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({