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)
|
## 1.3.13 (2022-11-09)
|
||||||
|
|
||||||
- 修复章节目录和图片分页
|
- 修复章节目录和图片分页
|
||||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Baozi Manhua'
|
extName = 'Baozi Manhua'
|
||||||
pkgNameSuffix = 'zh.baozimanhua'
|
pkgNameSuffix = 'zh.baozimanhua'
|
||||||
extClass = '.Baozi'
|
extClass = '.Baozi'
|
||||||
extVersionCode = 13
|
extVersionCode = 14
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -144,7 +144,10 @@ class Baozi : ParsedHttpSource(), ConfigurableSource {
|
||||||
}.mapTo(pageList) { element ->
|
}.mapTo(pageList) { element ->
|
||||||
Page(i++, imageUrl = element.attr("src"))
|
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
|
pageList
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue