mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Content server: Update metadata when serving azw3 files
This commit is contained in:
parent
9d9b85cae5
commit
ae00ff119a
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user