Fix ComicInfo.xml for galleries with temp tags

This commit is contained in:
FooIbar committed 2024-08-13 17:46:01 +08:00
1 parent 33258ea554
commit 75d8ff4b64
1 file changed
+1
@@ -60,6 +60,7 @@ fun GalleryInfo.getComicInfo(): ComicInfo {
else -> simpleTags?.forEach { tagString ->
val (namespace, tag) = tagString.split(':', limit = 2)
.takeIf { it.size == 2 } ?: return@forEach // Ignore temp tags that don't have namespace
when (val ns = TagNamespace(namespace)) {
Artist, Cosplayer -> artists.add(tag)
Group -> groups.add(tag)