MOBI Output: Don't set cdetype when share_not_sync is specified.

This commit is contained in:
Kovid Goyal 2011-09-17 12:29:33 -06:00
parent 33c3d83858
commit 59fabea9f9
2 changed files with 2 additions and 2 deletions

View File

@ -360,7 +360,7 @@ class MetadataUpdater(object):
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')))

View File

@ -535,7 +535,7 @@ class MobiWriter(object):
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