Fixed sources with no tags in the manga not having the proper type

This commit is contained in:
Jay 2020-05-18 20:26:20 -04:00
parent 5790380fcd
commit 8609145622

View File

@ -71,7 +71,7 @@ interface Manga : SManga {
fun mangaType(): Int {
val sourceName = Injekt.get<SourceManager>().getOrStub(source).name
val currentTags =
genre?.split(",")?.map { it.trim().toLowerCase(Locale.US) } ?: return TYPE_MANGA
genre?.split(",")?.map { it.trim().toLowerCase(Locale.US) } ?: emptyList()
return if (currentTags.any { tag -> tag.startsWith("japanese") || isMangaTag(tag) }) {
TYPE_MANGA
} else if (currentTags.any { tag -> tag.startsWith("english") || isComicTag(tag) } || isComicSource(