Content server: Update metadata when serving azw3 files

This commit is contained in:
Kovid Goyal 2013-01-11 11:46:29 +05:30
parent 9d9b85cae5
commit ae00ff119a

View File

@ -236,7 +236,7 @@ class ContentServer(object):
newmi = mi.deepcopy_metadata()
newmi.template_to_attribute(mi, cpb)
if format in ('MOBI', 'EPUB'):
if format in {'MOBI', 'EPUB', 'AZW3'}:
# Write the updated file
from calibre.ebooks.metadata.meta import set_metadata
set_metadata(fmt, newmi, format.lower())