mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
fix:搜索跳转为详情页链接 校验书源失败
This commit is contained in:
parent
dcaf183a38
commit
cb9289dc14
@ -133,7 +133,10 @@ class CheckSourceService : BaseService() {
|
|||||||
}
|
}
|
||||||
books = WebBook.exploreBookAwait(this, source, url)
|
books = WebBook.exploreBookAwait(this, source, url)
|
||||||
}
|
}
|
||||||
val book = WebBook.getBookInfoAwait(this, source, books.first().toBook())
|
var book = books.first().toBook()
|
||||||
|
if (book.tocUrl.isBlank()) {
|
||||||
|
book = WebBook.getBookInfoAwait(this, source, book)
|
||||||
|
}
|
||||||
val toc = WebBook.getChapterListAwait(this, source, book)
|
val toc = WebBook.getChapterListAwait(this, source, book)
|
||||||
val nextChapterUrl = toc.getOrNull(1)?.url ?: toc.first().url
|
val nextChapterUrl = toc.getOrNull(1)?.url ?: toc.first().url
|
||||||
val content = WebBook.getContentAwait(
|
val content = WebBook.getContentAwait(
|
||||||
|
Loading…
Reference in New Issue
Block a user