Baozi Manhua: fix page list parsing (#14255)
This commit is contained in:
parent
afdf15da51
commit
1ac441710f
|
@ -1,3 +1,7 @@
|
|||
## 1.3.14 (2022-11-14)
|
||||
|
||||
- 修复未分页的章节不断加载后续章节图片的问题
|
||||
|
||||
## 1.3.13 (2022-11-09)
|
||||
|
||||
- 修复章节目录和图片分页
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Baozi Manhua'
|
||||
pkgNameSuffix = 'zh.baozimanhua'
|
||||
extClass = '.Baozi'
|
||||
extVersionCode = 13
|
||||
extVersionCode = 14
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -144,7 +144,10 @@ class Baozi : ParsedHttpSource(), ConfigurableSource {
|
|||
}.mapTo(pageList) { element ->
|
||||
Page(i++, imageUrl = element.attr("src"))
|
||||
}
|
||||
url = document.selectFirst(Evaluator.Id("next-chapter"))?.attr("href") ?: break
|
||||
url = document.selectFirst(Evaluator.Id("next-chapter"))
|
||||
?.takeIf { it.text() == "下一页" }
|
||||
?.attr("href")
|
||||
?: break
|
||||
}
|
||||
pageList
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue