Add series type to genre for: MangaSee, MangaLife, Komiku, Maid, ManhuaID (#6382)

* Komiku: add series type to genre

add series type(manga/manhwa/manhua/other)  thinggy to genre for some source

* Maid - Manga: add series type to genre

add series type(manga/manhwa/manhua/other)  thinggy to genre for some source

* ManhuaID: add series type to genre

add series type(manga/manhwa/manhua/other)  thinggy to genre for some source

* MangaSee,MangaLife: add series type to genre

add series type(manga/manhwa/manhua/other)  thinggy to genre for some source
This commit is contained in:
Riztard Lanthorn
2021-04-01 19:36:16 +07:00
committed by GitHub
parent 986ed45fc8
commit 8c60f17913
8 changed files with 28 additions and 4 deletions

View File

@ -190,6 +190,12 @@ abstract class NepNep(
status = info.select("li.list-group-item:has(span:contains(Status)) a:contains(scan)").text().toStatus()
description = info.select("div.Content").text()
thumbnail_url = info.select("img").attr("abs:src")
// add manga/manhwa/manhua thinggy to genre
val type = info.select("li.list-group-item:has(span:contains(Type)) a, a[href*=type\\=]").firstOrNull()?.ownText()
genre += if (genre!!.contains(type.toString(), true) || type == "-") ""
else if (!type.isNullOrEmpty() && !genre.isNullOrEmpty()) ", $type"
else if (!type.isNullOrEmpty() && genre.isNullOrEmpty()) "$type" else ""
}
}
}

View File

@ -9,7 +9,7 @@ class NepNepGenerator : ThemeSourceGenerator {
override val themeClass = "NepNep"
override val baseVersionCode: Int = 1
override val baseVersionCode: Int = 2
override val sources = listOf(
SingleLang("MangaSee", "https://mangasee123.com", "en", overrideVersionCode = 20),