mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
1f33ebeffe
commit
2255ee80a8
@ -27,7 +27,7 @@ class Footnotes(object):
|
|||||||
if fd is None:
|
if fd is None:
|
||||||
raw = self.document.javascript('window.calibre_extract.get_footnote_data()', typ='string')
|
raw = self.document.javascript('window.calibre_extract.get_footnote_data()', typ='string')
|
||||||
try:
|
try:
|
||||||
fd = frozenset(unicode(QUrl(x).toLocalFile()) for x in json.loads(raw))
|
fd = frozenset(QUrl(x).toLocalFile() for x in json.loads(raw))
|
||||||
except Exception:
|
except Exception:
|
||||||
fd = frozenset()
|
fd = frozenset()
|
||||||
self.footnote_data_cache[current_url] = fd
|
self.footnote_data_cache[current_url] = fd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user