mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5596 (epub to mobi fail)
This commit is contained in:
parent
8d8e40fed5
commit
678e3a871c
@ -117,7 +117,7 @@ class EPUBInput(InputFormatPlugin):
|
||||
encfile = os.path.abspath(os.path.join('META-INF', 'encryption.xml'))
|
||||
opf = None
|
||||
for f in walk(u'.'):
|
||||
if f.lower().endswith('.opf'):
|
||||
if f.lower().endswith('.opf') and '__MACOSX' not in f:
|
||||
opf = os.path.abspath(f)
|
||||
break
|
||||
path = getattr(stream, 'name', 'stream')
|
||||
|
Loading…
x
Reference in New Issue
Block a user