@@ -46,16 +46,16 @@ class ManHuaDui:HttpSource() {
46
46
override fun mangaInfoParse (response : Response ): SManga = SManga .create().apply {
47
47
val dom = Jsoup .parse(response.body()!! .string())
48
48
title = dom.selectFirst(" h1" ).text()
49
- // thumbnail_url = infoElement .selectFirst(".cover img").attr("src")
50
- // author = infoElement .selectFirst(".subtitle ").text().substringAfter(":").trim()
49
+ thumbnail_url = dom .selectFirst(" #Cover img" ).attr(" src" )
50
+ author = dom .selectFirst(" .txtItme " ).text().substringAfter(" :" ).trim()
51
51
// status = when(infoElement.selectFirst("span:nth-of-type(1) span").text()) {
52
52
// "连载中" -> SManga.ONGOING
53
53
// "完结" -> SManga.COMPLETED
54
54
// else -> SManga.UNKNOWN
55
55
// }
56
56
// genre = infoElement.select(".tip a")
57
57
// .map{ node -> node.text() }.joinToString(", ")
58
- // description = infoElement .select("p.content ").text()
58
+ description = dom .select(" #full-des " ).text()
59
59
}
60
60
61
61
override fun chaptersRequest (page : Int , url : String ): Request = GET (url)
@@ -64,7 +64,7 @@ class ManHuaDui:HttpSource() {
64
64
val doc = Jsoup .parse(response.body()!! .string())
65
65
val ret = doc.select(" #chapter-list-1 a" ).map { node -> SChapter .create().apply {
66
66
name = node.text()
67
- url = node.attr(" href" )
67
+ url = " https://m.manhuadui.com ${ node.attr(" href" )} "
68
68
} }
69
69
return PagedList (ret, false )
70
70
}
@@ -80,7 +80,7 @@ class ManHuaDui:HttpSource() {
80
80
val ret = ArrayList <MangaPage >(len)
81
81
val sp = response.request().url().url().toString().split(" .html" )
82
82
for ( i in 1 .. len){
83
- ret.add(MangaPage (i, " ${sp[0 ]} -${i + 1 } .html" , " " ))
83
+ ret.add(MangaPage (i, " ${sp[0 ]} -$i .html" , " " ))
84
84
}
85
85
return ret
86
86
}
0 commit comments