mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Ignore non integral play orders when reading NCX TOC files
This commit is contained in:
parent
46736118bb
commit
15c842a047
@ -331,7 +331,10 @@ class OEBReader(object):
|
|||||||
id = child.get('id')
|
id = child.get('id')
|
||||||
klass = child.get('class', 'chapter')
|
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,
|
authorElement = xpath(child,
|
||||||
'descendant::calibre:meta[@name = "author"]')
|
'descendant::calibre:meta[@name = "author"]')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user