Skip to content

Commit 27e41a0

Browse files
committed
fix manhuadui
1 parent f530f07 commit 27e41a0

File tree

1 file changed

+5
-5
lines changed
  • app/src/main/java/top/rechinx/meow/core/source/internal

1 file changed

+5
-5
lines changed

app/src/main/java/top/rechinx/meow/core/source/internal/ManHuaDui.kt

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ class ManHuaDui:HttpSource() {
4646
override fun mangaInfoParse(response: Response): SManga = SManga.create().apply {
4747
val dom = Jsoup.parse(response.body()!!.string())
4848
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()
5151
// status = when(infoElement.selectFirst("span:nth-of-type(1) span").text()) {
5252
// "连载中" -> SManga.ONGOING
5353
// "完结" -> SManga.COMPLETED
5454
// else -> SManga.UNKNOWN
5555
// }
5656
// genre = infoElement.select(".tip a")
5757
// .map{ node -> node.text() }.joinToString(", ")
58-
// description = infoElement.select("p.content").text()
58+
description = dom.select("#full-des").text()
5959
}
6060

6161
override fun chaptersRequest(page: Int, url: String): Request = GET(url)
@@ -64,7 +64,7 @@ class ManHuaDui:HttpSource() {
6464
val doc = Jsoup.parse(response.body()!!.string())
6565
val ret = doc.select("#chapter-list-1 a").map { node -> SChapter.create().apply {
6666
name = node.text()
67-
url = node.attr("href")
67+
url = "https://m.manhuadui.com${node.attr("href")}"
6868
} }
6969
return PagedList(ret, false)
7070
}
@@ -80,7 +80,7 @@ class ManHuaDui:HttpSource() {
8080
val ret = ArrayList<MangaPage>(len)
8181
val sp = response.request().url().url().toString().split(".html")
8282
for ( i in 1 .. len){
83-
ret.add(MangaPage(i, "${sp[0]}-${i + 1}.html", ""))
83+
ret.add(MangaPage(i, "${sp[0]}-$i.html", ""))
8484
}
8585
return ret
8686
}

0 commit comments

Comments
 (0)