mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f23b065ec3
commit
c0b11c6964
@ -88,7 +88,7 @@ class Container(object):
|
|||||||
self.mime_map[name] = guess_type('a.opf')
|
self.mime_map[name] = guess_type('a.opf')
|
||||||
|
|
||||||
if not hasattr(self, 'opf_name'):
|
if not hasattr(self, 'opf_name'):
|
||||||
raise InvalidBook('Book has no OPF file')
|
raise InvalidBook('Could not locate opf file: %r'%opfpath)
|
||||||
|
|
||||||
# Update mime map with data from the OPF
|
# Update mime map with data from the OPF
|
||||||
for item in self.opf_xpath('//opf:manifest/opf:item[@href and @media-type]'):
|
for item in self.opf_xpath('//opf:manifest/opf:item[@href and @media-type]'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user