mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
32caccc325
commit
bcfa99cb13
@ -1240,7 +1240,7 @@ class InvalidMobi(InvalidBook):
|
|||||||
def do_explode(path, dest):
|
def do_explode(path, dest):
|
||||||
from calibre.ebooks.mobi.reader.mobi6 import MobiReader
|
from calibre.ebooks.mobi.reader.mobi6 import MobiReader
|
||||||
from calibre.ebooks.mobi.reader.mobi8 import Mobi8Reader
|
from calibre.ebooks.mobi.reader.mobi8 import Mobi8Reader
|
||||||
with open(path, 'rb') as stream:
|
with lopen(path, 'rb') as stream:
|
||||||
mr = MobiReader(stream, default_log, None, None)
|
mr = MobiReader(stream, default_log, None, None)
|
||||||
|
|
||||||
with CurrentDir(dest):
|
with CurrentDir(dest):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user