1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-28 04:19:59 +00:00

Bugfix backup metadata

This commit is contained in:
Ozzie Isaacs 2023-03-05 16:03:07 +01:00
parent a6b54e398b
commit cf850c6ed5

View File

@ -177,6 +177,9 @@ class TaskBackupMetadata(CalibreTask):
for b in book.comments:
description = etree.SubElement(metadata, PURL + "description", nsmap=NSMAP)
description.text = b.text
for b in book.publishers:
publisher = etree.SubElement(metadata, PURL + "publisher", nsmap=NSMAP)
publisher.text = str(b.name)
if not book.languages:
language = etree.SubElement(metadata, PURL + "language", nsmap=NSMAP)
language.text = self.export_language