mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Implement support for parsing ToC from NCX files
This commit is contained in:
parent
2bc40380db
commit
0c61a51a1b
@ -84,7 +84,7 @@ class Spine(object):
|
|||||||
class TOC(list):
|
class TOC(list):
|
||||||
|
|
||||||
def __init__(self, opfreader, cwd):
|
def __init__(self, opfreader, cwd):
|
||||||
self.toc = toc = None
|
self.toc = None
|
||||||
toc = opfreader.soup.find('spine', toc=True)
|
toc = opfreader.soup.find('spine', toc=True)
|
||||||
if toc is not None:
|
if toc is not None:
|
||||||
toc = toc['toc']
|
toc = toc['toc']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user