Ensure that tags are overwritten when saving metadata
This commit is contained in:
parent
64d6a33f13
commit
bedfb233da
@ -73,6 +73,10 @@ class ComicInfoXml:
|
|||||||
et_entry.text = str(md_entry)
|
et_entry.text = str(md_entry)
|
||||||
else:
|
else:
|
||||||
ET.SubElement(root, cix_entry).text = str(md_entry)
|
ET.SubElement(root, cix_entry).text = str(md_entry)
|
||||||
|
else:
|
||||||
|
et_entry = root.find(cix_entry)
|
||||||
|
if et_entry is not None:
|
||||||
|
et_entry.clear()
|
||||||
|
|
||||||
assign("Title", md.title)
|
assign("Title", md.title)
|
||||||
assign("Series", md.series)
|
assign("Series", md.series)
|
||||||
@ -148,8 +152,7 @@ class ComicInfoXml:
|
|||||||
assign("LanguageISO", md.language)
|
assign("LanguageISO", md.language)
|
||||||
assign("Format", md.format)
|
assign("Format", md.format)
|
||||||
assign("AgeRating", md.maturity_rating)
|
assign("AgeRating", md.maturity_rating)
|
||||||
if md.black_and_white is not None and md.black_and_white:
|
assign("BlackAndWhite", "Yes" if md.blackAndWhite else None)
|
||||||
ET.SubElement(root, "BlackAndWhite").text = "Yes"
|
|
||||||
assign("Manga", md.manga)
|
assign("Manga", md.manga)
|
||||||
assign("Characters", md.characters)
|
assign("Characters", md.characters)
|
||||||
assign("Teams", md.teams)
|
assign("Teams", md.teams)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user