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:
|
for a in group:
|
||||||
atype = a['type']
|
atype = a['type']
|
||||||
if library_id:
|
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:
|
else:
|
||||||
link_prefix = None
|
link_prefix = None
|
||||||
if atype == 'highlight':
|
if atype == 'highlight':
|
||||||
|
@ -144,7 +144,7 @@ class Export(ExportBase):
|
|||||||
library_id = bld['library_id']
|
library_id = bld['library_id']
|
||||||
if library_id:
|
if library_id:
|
||||||
library_id = '_hex_-' + library_id.encode('utf-8').hex()
|
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()
|
fmt = self.export_format.currentData()
|
||||||
if fmt == 'calibre_highlights':
|
if fmt == 'calibre_highlights':
|
||||||
return json.dumps({
|
return json.dumps({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user