mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 02:56:12 +01:00
Ignore non integral play orders when reading NCX TOC files
This commit is contained in:
parent
46736118bb
commit
15c842a047
1 changed files with 4 additions and 1 deletions
|
|
@ -331,7 +331,10 @@ def _toc_from_navpoint(self, item, toc, navpoint):
|
|||
id = child.get('id')
|
||||
klass = child.get('class', 'chapter')
|
||||
|
||||
po = int(child.get('playOrder', self.oeb.toc.next_play_order()))
|
||||
try:
|
||||
po = int(child.get('playOrder', self.oeb.toc.next_play_order()))
|
||||
except:
|
||||
po = self.oeb.toc.next_play_order()
|
||||
|
||||
authorElement = xpath(child,
|
||||
'descendant::calibre:meta[@name = "author"]')
|
||||
|
|
|
|||
Loading…
Reference in a new issue