mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1433 (Error when trying to view mobipocket file)
This commit is contained in:
parent
0b80001ef0
commit
4d82cb5196
@ -30,7 +30,7 @@ def lit2opf(path, tdir, opts):
|
||||
|
||||
def mobi2opf(path, tdir, opts):
|
||||
from calibre.ebooks.mobi.reader import MobiReader
|
||||
print 'Exploding MOBI file:', path
|
||||
print 'Exploding MOBI file:', path.encode('utf-8') if isinstance(path, unicode) else path
|
||||
reader = MobiReader(path)
|
||||
reader.extract_content(tdir)
|
||||
files = list(walk(tdir))
|
||||
|
Loading…
x
Reference in New Issue
Block a user