|
|
@ -29,7 +29,7 @@ class WebBook(private val bookSource: BookSource) { |
|
|
|
bookSource.getSearchRule().searchUrl?.let { searchUrl -> |
|
|
|
bookSource.getSearchRule().searchUrl?.let { searchUrl -> |
|
|
|
val analyzeUrl = AnalyzeUrl(searchUrl, key, page) |
|
|
|
val analyzeUrl = AnalyzeUrl(searchUrl, key, page) |
|
|
|
val response = analyzeUrl.getResponseAsync().await() |
|
|
|
val response = analyzeUrl.getResponseAsync().await() |
|
|
|
return@async BookList.analyzeBookList(response, bookSource, analyzeUrl, false) |
|
|
|
return@let BookList.analyzeBookList(response, bookSource, analyzeUrl, false) |
|
|
|
} |
|
|
|
} |
|
|
|
return@async arrayListOf<SearchBook>() |
|
|
|
return@async arrayListOf<SearchBook>() |
|
|
|
} |
|
|
|
} |
|
|
|