[Madara] Fix empty tag names

pull/33/head
Koitharu 4 years ago
parent a9684533b2
commit c92f89f307
No known key found for this signature in database
GPG Key ID: 8E861F8CE6E7CE27

@ -108,7 +108,9 @@ internal abstract class MadaraParser(
} }
MangaTag( MangaTag(
key = href, key = href,
title = a.ownText().trim().toTitleCase(), title = a.ownText().trim().ifEmpty {
a.selectFirst(".menu-image-title")?.text()?.trim() ?: return@mapNotNullToSet null
}.toTitleCase(),
source = source, source = source,
) )
} }

Loading…
Cancel
Save