mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6a4bfa920c
commit
b5bc1ef8f7
@ -590,7 +590,7 @@ class MobiWriter(object):
|
|||||||
Write the PalmDB header
|
Write the PalmDB header
|
||||||
'''
|
'''
|
||||||
title = ascii_filename(unicode(self.oeb.metadata.title[0])).replace(
|
title = ascii_filename(unicode(self.oeb.metadata.title[0])).replace(
|
||||||
' ', '_')
|
' ', '_')[:32]
|
||||||
title = title + (b'\0' * (32 - len(title)))
|
title = title + (b'\0' * (32 - len(title)))
|
||||||
now = int(time.time())
|
now = int(time.time())
|
||||||
nrecords = len(self.records)
|
nrecords = len(self.records)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user