Baozi Manhua: fix page list parsing (#14255)

This commit is contained in:
stevenyomi 2022-11-14 19:05:01 +08:00 committed by GitHub
parent afdf15da51
commit 1ac441710f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 1.3.14 (2022-11-14)
- 修复未分页的章节不断加载后续章节图片的问题
## 1.3.13 (2022-11-09) ## 1.3.13 (2022-11-09)
- 修复章节目录和图片分页 - 修复章节目录和图片分页

View File

@ -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"

View File

@ -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
} }