mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-03 03:37:13 +01:00
MOBI Output: Don't set cdetype when share_not_sync is specified.
This commit is contained in:
parent
33c3d83858
commit
59fabea9f9
2 changed files with 2 additions and 2 deletions
|
|
@ -360,7 +360,7 @@ def update_exth_record(rec):
|
|||
|
||||
if kindle_pdoc and kindle_pdoc in mi.tags:
|
||||
added_501 = True
|
||||
update_exth_record((501, str('PDOC')))
|
||||
update_exth_record((501, b'PDOC'))
|
||||
|
||||
if mi.pubdate:
|
||||
update_exth_record((106, str(mi.pubdate).encode(self.codec, 'replace')))
|
||||
|
|
|
|||
|
|
@ -535,7 +535,7 @@ def build_exth(self): # EXTH Header {{{
|
|||
nrecs += 1
|
||||
|
||||
# Write cdetype
|
||||
if not self.is_periodical:
|
||||
if not self.is_periodical and not self.opts.share_not_sync:
|
||||
exth.write(pack(b'>II', 501, 12))
|
||||
exth.write(b'EBOK')
|
||||
nrecs += 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue