WP Mangastream fix issue (#5558)
fix mangakyo and westmanga manga details issue
This commit is contained in:
parent
cfdecd2583
commit
78d31de70a
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'WP MangaStream (multiple sources)'
|
extName = 'WP MangaStream (multiple sources)'
|
||||||
pkgNameSuffix = 'all.wpmangastream'
|
pkgNameSuffix = 'all.wpmangastream'
|
||||||
extClass = '.WPMangaStreamFactory'
|
extClass = '.WPMangaStreamFactory'
|
||||||
extVersionCode = 48
|
extVersionCode = 49
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -165,9 +165,9 @@ abstract class WPMangaStream(
|
||||||
override fun mangaDetailsParse(document: Document): SManga {
|
override fun mangaDetailsParse(document: Document): SManga {
|
||||||
return SManga.create().apply {
|
return SManga.create().apply {
|
||||||
document.select("div.bigcontent, div.animefull, div.main-info").firstOrNull()?.let { infoElement ->
|
document.select("div.bigcontent, div.animefull, div.main-info").firstOrNull()?.let { infoElement ->
|
||||||
genre = infoElement.select("span:contains(Genres:) a, .mgen a").joinToString { it.text() }
|
genre = infoElement.select("span:contains(Genre) a, .mgen a").joinToString { it.text() }
|
||||||
status = parseStatus(infoElement.select("span:contains(Status:), .imptdt:contains(Status) i").firstOrNull()?.ownText())
|
status = parseStatus(infoElement.select("span:contains(Status:), .imptdt:contains(Status) i").firstOrNull()?.ownText())
|
||||||
author = infoElement.select("span:contains(Author:), .fmed b:contains(Author)+span, .imptdt:contains(Author) i").firstOrNull()?.ownText()
|
author = infoElement.select("span:contains(Author:), span:contains(Pengarang:), .fmed b:contains(Author)+span, .imptdt:contains(Author) i").firstOrNull()?.ownText()
|
||||||
artist = infoElement.select(".fmed b:contains(Artist)+span, .imptdt:contains(Artist) i").firstOrNull()?.ownText()
|
artist = infoElement.select(".fmed b:contains(Artist)+span, .imptdt:contains(Artist) i").firstOrNull()?.ownText()
|
||||||
description = infoElement.select("div.desc p, div.entry-content p").joinToString("\n") { it.text() }
|
description = infoElement.select("div.desc p, div.entry-content p").joinToString("\n") { it.text() }
|
||||||
thumbnail_url = infoElement.select("div.thumb img").imgAttr()
|
thumbnail_url = infoElement.select("div.thumb img").imgAttr()
|
||||||
|
|
|
@ -195,6 +195,17 @@ class KomikCast : WPMangaStream("Komik Cast (WP Manga Stream)", "https://komikca
|
||||||
}
|
}
|
||||||
|
|
||||||
class WestManga : WPMangaStream("West Manga (WP Manga Stream)", "https://westmanga.info", "id") {
|
class WestManga : WPMangaStream("West Manga (WP Manga Stream)", "https://westmanga.info", "id") {
|
||||||
|
override fun mangaDetailsParse(document: Document): SManga {
|
||||||
|
return SManga.create().apply {
|
||||||
|
document.select(".seriestucontent").firstOrNull()?.let { infoElement ->
|
||||||
|
genre = infoElement.select(".seriestugenre a").joinToString { it.text() }
|
||||||
|
status = parseStatus(infoElement.select(".infotable tr:contains(Status) td:last-child").firstOrNull()?.ownText())
|
||||||
|
author = infoElement.select(".infotable tr:contains(Author) td:last-child").firstOrNull()?.ownText()
|
||||||
|
description = infoElement.select(".entry-content-single[itemprop=\"description\"]").joinToString("\n") { it.text() }
|
||||||
|
thumbnail_url = infoElement.select("div.thumb img").imgAttr()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
override fun getGenreList(): List<Genre> = listOf(
|
override fun getGenreList(): List<Genre> = listOf(
|
||||||
Genre("4 Koma", "344"),
|
Genre("4 Koma", "344"),
|
||||||
Genre("Action", "13"),
|
Genre("Action", "13"),
|
||||||
|
|
Loading…
Reference in New Issue