pull/32/head
kunfei 5 years ago
parent 7e43288185
commit 117a5719d7
  1. 2
      app/src/main/java/io/legado/app/model/WebBook.kt

@ -16,7 +16,7 @@ class WebBook(private val bookSource: BookSource) {
fun searchBook(key: String, page: Int?): Coroutine<List<SearchBook>> {
return Coroutine.async {
bookSource.getSearchRule().searchUrl?.let { searchUrl ->
val analyzeUrl = AnalyzeUrl(searchUrl, key, page)
val analyzeUrl = AnalyzeUrl(searchUrl, key, page, baseUrl = bookSource.bookSourceUrl)
val response = analyzeUrl.getResponseAsync().await()
return@let BookList.analyzeBookList(response, bookSource, analyzeUrl)
}

Loading…
Cancel
Save