mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
e-book viewer: Ignore missing items inthe spine, instead of erroring out
This commit is contained in:
parent
7c0a3e2e46
commit
5843fa524a
@ -195,7 +195,10 @@ class EbookIterator(object):
|
||||
mt = self.opf.manifest.type_for_id(i.idref)
|
||||
if mt is None:
|
||||
mt = guess_type(spath)[0]
|
||||
try:
|
||||
self.spine.append(SpineItem(spath, mime_type=mt))
|
||||
except:
|
||||
self.log.warn('Missing spine item:', repr(spath))
|
||||
|
||||
cover = self.opf.cover
|
||||
if self.ebook_ext in ('lit', 'mobi', 'prc', 'opf') and cover:
|
||||
|
Loading…
x
Reference in New Issue
Block a user