From cf850c6ed5db398e6793092840f5180a952bfa1e Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sun, 5 Mar 2023 16:03:07 +0100 Subject: [PATCH] Bugfix backup metadata --- cps/tasks/metadata_backup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cps/tasks/metadata_backup.py b/cps/tasks/metadata_backup.py index 2bb2a06f..35d51d75 100644 --- a/cps/tasks/metadata_backup.py +++ b/cps/tasks/metadata_backup.py @@ -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