WP MangaStream fix manga details (#5428)

for site like kiryuu
This commit is contained in:
Riztard Lanthorn 2021-01-16 10:29:23 +07:00 committed by GitHub
parent 057070f05b
commit 8d5dc2d380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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 = 44 extVersionCode = 45
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -164,11 +164,11 @@ 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").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(Genres:) 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").firstOrNull()?.ownText() author = infoElement.select("span:contains(Author:), .fmed b:contains(Author)+span, .imptdt:contains(Author) i").firstOrNull()?.ownText()
artist = infoElement.select(".fmed b:contains(Artist)+span").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()
} }