|
|
@ -120,7 +120,7 @@ class CheckSourceService : BaseService() { |
|
|
|
} |
|
|
|
} |
|
|
|
var books = WebBook.searchBookAwait(this, source, searchWord) |
|
|
|
var books = WebBook.searchBookAwait(this, source, searchWord) |
|
|
|
if (books.isEmpty()) { |
|
|
|
if (books.isEmpty()) { |
|
|
|
source.addGroup("搜索为空") |
|
|
|
source.addGroup("搜索失效") |
|
|
|
val exs = source.exploreKinds |
|
|
|
val exs = source.exploreKinds |
|
|
|
var url: String? = null |
|
|
|
var url: String? = null |
|
|
|
for (ex in exs) { |
|
|
|
for (ex in exs) { |
|
|
@ -134,6 +134,7 @@ class CheckSourceService : BaseService() { |
|
|
|
} |
|
|
|
} |
|
|
|
books = WebBook.exploreBookAwait(this, source, url) |
|
|
|
books = WebBook.exploreBookAwait(this, source, url) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
source.removeGroup("搜索失效") |
|
|
|
var book = books.first().toBook() |
|
|
|
var book = books.first().toBook() |
|
|
|
if (book.tocUrl.isBlank()) { |
|
|
|
if (book.tocUrl.isBlank()) { |
|
|
|
book = WebBook.getBookInfoAwait(this, source, book) |
|
|
|
book = WebBook.getBookInfoAwait(this, source, book) |
|
|
|