mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
AZW3 Input: Handle empty HTML files
This commit is contained in:
parent
205adafc31
commit
84a2ed5609
@ -204,6 +204,11 @@ class Mobi8Reader(object):
|
||||
baseptr = baseptr + length
|
||||
divptr += 1
|
||||
self.parts.append(skeleton)
|
||||
if divcnt < 1:
|
||||
# Empty file
|
||||
import uuid
|
||||
aidtext = str(uuid.uuid4())
|
||||
filename = aidtext + '.html'
|
||||
self.partinfo.append(Part(skelnum, 'text', filename, skelpos,
|
||||
baseptr, aidtext))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user