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:
parent
986ed45fc8
commit
8c60f17913
|
@ -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),
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Komiku'
|
||||
pkgNameSuffix = 'id.komiku'
|
||||
extClass = '.Komiku'
|
||||
extVersionCode = 9
|
||||
extVersionCode = 10
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -231,6 +231,12 @@ class Komiku : ParsedHttpSource() {
|
|||
genre = document.select("li[itemprop=genre] > a").joinToString { it.text() }
|
||||
status = parseStatus(document.select("table.inftable tr > td:contains(Status) + td").text())
|
||||
thumbnail_url = document.select("div.ims > img").attr("abs:src")
|
||||
|
||||
// add manga/manhwa/manhua thinggy to genre
|
||||
val type = document.select("table.inftable tr:contains(Jenis) a, table.inftable tr:has(a[href*=category\\/]) a, a[href*=category\\/]").text()
|
||||
genre += if (genre!!.contains(type.toString(), true) || type == "-") ""
|
||||
else if (!type.isNullOrEmpty() && !genre.isNullOrEmpty()) ", $type"
|
||||
else if (!type.isNullOrEmpty() && genre.isNullOrEmpty()) "$type" else ""
|
||||
}
|
||||
|
||||
private fun parseStatus(status: String) = when {
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Maid - Manga'
|
||||
pkgNameSuffix = 'id.maidmanga'
|
||||
extClass = '.MaidManga'
|
||||
extVersionCode = 5
|
||||
extVersionCode = 6
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -103,6 +103,12 @@ class MaidManga : ParsedHttpSource() {
|
|||
thumbnail_url = document.select("div.series-thumb img").attr("abs:src")
|
||||
status = parseStatus(document.select("div.block span.status").text())
|
||||
author = document.select("ul.series-infolist li b:contains(Author) + span").text()
|
||||
|
||||
// add manga/manhwa/manhua thinggy to genre
|
||||
val type = document.select("div.block span.type").text()
|
||||
genre += if (genre!!.contains(type.toString(), true) || type == "-") ""
|
||||
else if (!type.isNullOrEmpty() && !genre.isNullOrEmpty()) ", $type"
|
||||
else if (!type.isNullOrEmpty() && genre.isNullOrEmpty()) "$type" else ""
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'ManhuaID'
|
||||
pkgNameSuffix = 'id.manhuaid'
|
||||
extClass = '.ManhuaID'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -67,6 +67,12 @@ class ManhuaID : ParsedHttpSource() {
|
|||
parseStatus(it)
|
||||
}
|
||||
thumbnail_url = document.select("img.img-fluid").attr("abs:src")
|
||||
|
||||
// add manga/manhwa/manhua thinggy to genre
|
||||
val type = document.select("table tr:contains(Type) a, table 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 ""
|
||||
}
|
||||
|
||||
private fun parseStatus(status: String) = when {
|
||||
|
|
Loading…
Reference in New Issue