Ignore non integral play orders when reading NCX TOC files

This commit is contained in:
Kovid Goyal 2010-03-04 13:02:25 -07:00
parent 46736118bb
commit 15c842a047

View File

@ -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"]')