mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
show-book -> view-book in markdown highlights export
This commit is contained in:
parent
11ad7120ab
commit
d7a7dd755f
@ -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':
|
||||
|
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user