From ada88d719f23957a4f244076cdc22edefbbb3714 Mon Sep 17 00:00:00 2001 From: MichaelFitzurka Date: Sun, 3 Apr 2022 16:50:27 -0400 Subject: [PATCH] Empty metadata should not assign an empty tag. --- comicapi/comicinfoxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comicapi/comicinfoxml.py b/comicapi/comicinfoxml.py index 0858d66..0079f2b 100644 --- a/comicapi/comicinfoxml.py +++ b/comicapi/comicinfoxml.py @@ -67,7 +67,7 @@ class ComicInfoXml: # helper func def assign(cix_entry, md_entry): - if md_entry is not None: + if md_entry is not None and md_entry: et_entry = root.find(cix_entry) if et_entry is not None: et_entry.text = str(md_entry)