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:
@ -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 ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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),
|
||||
|
Reference in New Issue
Block a user