mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:33:50 +02:00
Implement support for parsing ToC from NCX files
This commit is contained in:
parent
2bc40380db
commit
0c61a51a1b
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ def items(self):
|
|||
class TOC(list):
|
||||
|
||||
def __init__(self, opfreader, cwd):
|
||||
self.toc = toc = None
|
||||
self.toc = None
|
||||
toc = opfreader.soup.find('spine', toc=True)
|
||||
if toc is not None:
|
||||
toc = toc['toc']
|
||||
|
|
|
|||
Loading…
Reference in a new issue