mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 04:43:00 +02:00
Content server: Update metadata when serving azw3 files
This commit is contained in:
parent
9d9b85cae5
commit
ae00ff119a
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ def get_format(self, id, format):
|
|||
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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue