Fixed sources with no tags in the manga not having the proper type
This commit is contained in:
parent
5790380fcd
commit
8609145622
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ interface Manga : SManga {
|
||||||
fun mangaType(): Int {
|
fun mangaType(): Int {
|
||||||
val sourceName = Injekt.get<SourceManager>().getOrStub(source).name
|
val sourceName = Injekt.get<SourceManager>().getOrStub(source).name
|
||||||
val currentTags =
|
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) }) {
|
return if (currentTags.any { tag -> tag.startsWith("japanese") || isMangaTag(tag) }) {
|
||||||
TYPE_MANGA
|
TYPE_MANGA
|
||||||
} else if (currentTags.any { tag -> tag.startsWith("english") || isComicTag(tag) } || isComicSource(
|
} else if (currentTags.any { tag -> tag.startsWith("english") || isComicTag(tag) } || isComicSource(
|
||||||
|
|
Reference in a new issue