diff --git a/nhentai/serializer.py b/nhentai/serializer.py index fc33cda..10e8ccd 100644 --- a/nhentai/serializer.py +++ b/nhentai/serializer.py @@ -33,7 +33,8 @@ def serialize_json(doujinshi, dir): def serialize_comicxml(doujinshi, dir): with open(os.path.join(dir, 'ComicInfo.xml'), 'w') as f: f.write('\n') - f.write('\n') + f.write('\n') xml_write_simple_tag(f, 'Manga', 'Yes') @@ -70,7 +71,8 @@ def serialize_comicxml(doujinshi, dir): def xml_write_simple_tag(f, name, val, indent=1): - f.write(f'{" " * indent}<{name}>{escape(str(val))}\n') + f.write('{}<{}>{}\n'.format(' ' * indent, name, escape(str(val)), name)) + def merge_json(): lst = []