Fix #2840 (Cannot change metadata in mobi book generated from txt file)

This commit is contained in:
Kovid Goyal 2009-07-14 12:08:10 -06:00
parent d73f000a10
commit ffb1d3d770

View File

@ -148,7 +148,7 @@ class MetadataUpdater(object):
elif mi.timestamp:
recs.append((106, str(mi.timestamp).encode(self.codec, 'replace')))
elif self.timestamp:
recs.append(106, self.timestamp)
recs.append((106, self.timestamp))
else:
recs.append((106, str(datetime.now()).encode(self.codec, 'replace')))