From df19399507b46a87b33d1a4894c31148046a187d Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 10 Mar 2021 16:45:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=9B=B8=E5=AF=B9=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E8=BD=AC=E7=BB=9D=E5=AF=B9=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/book/read/page/provider/ChapterProvider.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt index 54fec4b6e..e8aaca34d 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt @@ -96,7 +96,7 @@ object ChapterProvider { val matcher = AppPattern.imgPattern.matcher(text) while (matcher.find()) { matcher.group(1)?.let { it -> - val src = NetworkUtils.getAbsoluteURL(bookChapter.url, it) + val src = NetworkUtils.getAbsoluteURL(bookChapter.getAbsoluteURL(), it) srcList.add(src) ImageProvider.getImage(book, bookChapter.index, src) matcher.appendReplacement(sb, srcReplaceChar) @@ -120,7 +120,10 @@ object ChapterProvider { if (matcher.find()) { matcher.group(1)?.let { it -> if (!book.isEpub()) { - val src = NetworkUtils.getAbsoluteURL(bookChapter.url, it) + val src = NetworkUtils.getAbsoluteURL( + bookChapter.getAbsoluteURL(), + it + ) durY = setTypeImage( book, bookChapter, src, durY, textPages, book.getImageStyle()