none
This commit is contained in:
parent
7fcb7c9bf7
commit
c7a35a176c
@ -47,7 +47,7 @@ class rclEPUB:
|
|||||||
return (False, "", id, iseof)
|
return (False, "", id, iseof)
|
||||||
|
|
||||||
def openfile(self, params):
|
def openfile(self, params):
|
||||||
"""Open the EPUB file"""
|
"""Open the EPUB file, create a contents array"""
|
||||||
self.currentindex = 0
|
self.currentindex = 0
|
||||||
self.contents = []
|
self.contents = []
|
||||||
try:
|
try:
|
||||||
@ -56,8 +56,7 @@ class rclEPUB:
|
|||||||
self.em.rclog("openfile: epub.open failed: [%s]" % err)
|
self.em.rclog("openfile: epub.open failed: [%s]" % err)
|
||||||
return False
|
return False
|
||||||
for id, item in self.book.opf.manifest.iteritems():
|
for id, item in self.book.opf.manifest.iteritems():
|
||||||
# print item.__dict__
|
if item.media_type == 'application/xhtml+xml':
|
||||||
if item.media_type == u'application/xhtml+xml':
|
|
||||||
self.contents.append(id)
|
self.contents.append(id)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user