From 3d7a6ff6b1713b698006731677c336b0008e9ff3 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 12 Nov 2019 11:29:42 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/model/webbook/BookInfo.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/webbook/BookInfo.kt b/app/src/main/java/io/legado/app/model/webbook/BookInfo.kt index e36529192..0e9933ae5 100644 --- a/app/src/main/java/io/legado/app/model/webbook/BookInfo.kt +++ b/app/src/main/java/io/legado/app/model/webbook/BookInfo.kt @@ -5,6 +5,7 @@ import io.legado.app.R import io.legado.app.data.entities.Book import io.legado.app.data.entities.BookSource import io.legado.app.model.analyzeRule.AnalyzeRule +import io.legado.app.utils.NetworkUtils import io.legado.app.utils.htmlFormat object BookInfo { @@ -62,7 +63,7 @@ object BookInfo { SourceDebug.printLog(bookSource.bookSourceUrl, "┌获取封面链接") analyzeRule.getString(infoRule.coverUrl ?: "")?.let { - if (it.isNotEmpty()) book.coverUrl = it + if (it.isNotEmpty()) book.coverUrl = NetworkUtils.getAbsoluteURL(baseUrl, it) } SourceDebug.printLog(bookSource.bookSourceUrl, "└${book.coverUrl}") SourceDebug.printLog(bookSource.bookSourceUrl, "┌获取目录链接")