From 9bf98783df9577067d83404bc7894af77278a8a1 Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Sun, 9 Jan 2022 19:21:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=93=BE=E6=8E=A5=E4=BB=A5javascript?= =?UTF-8?q?=E5=BC=80=E5=A4=B4=E6=97=B6=E8=BF=94=E5=9B=9E""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/utils/NetworkUtils.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/utils/NetworkUtils.kt b/app/src/main/java/io/legado/app/utils/NetworkUtils.kt index 1b16d6fcc..01d52da46 100644 --- a/app/src/main/java/io/legado/app/utils/NetworkUtils.kt +++ b/app/src/main/java/io/legado/app/utils/NetworkUtils.kt @@ -109,6 +109,7 @@ object NetworkUtils { fun getAbsoluteURL(baseURL: String?, relativePath: String): String { if (baseURL.isNullOrEmpty()) return relativePath if (relativePath.isAbsUrl()) return relativePath + if (relativePath.startsWith("javascript")) return "" var relativeUrl = relativePath try { val absoluteUrl = URL(baseURL.substringBefore(",")) @@ -126,6 +127,7 @@ object NetworkUtils { */ fun getAbsoluteURL(baseURL: URL?, relativePath: String): String { if (baseURL == null) return relativePath + if (relativePath.startsWith("javascript")) return "" var relativeUrl = relativePath try { val parseUrl = URL(baseURL, relativePath) From 4e151ca30300334b122481ff505a18a5050e4b76 Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Sun, 9 Jan 2022 23:03:21 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0isVolume=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/web/bookSource/index.html | 5 +++++ app/src/main/java/io/legado/app/data/AppDatabase.kt | 2 +- .../main/java/io/legado/app/data/DatabaseMigrations.kt | 9 ++++++++- .../main/java/io/legado/app/data/entities/BookChapter.kt | 1 + .../java/io/legado/app/data/entities/rule/TocRule.kt | 1 + .../app/ui/book/source/edit/BookSourceEditActivity.kt | 2 ++ app/src/main/res/values-es-rES/strings.xml | 1 + app/src/main/res/values-ja-rJP/strings.xml | 1 + app/src/main/res/values-zh-rHK/strings.xml | 1 + app/src/main/res/values-zh-rTW/strings.xml | 1 + app/src/main/res/values-zh/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 12 files changed, 24 insertions(+), 2 deletions(-) diff --git a/app/src/main/assets/web/bookSource/index.html b/app/src/main/assets/web/bookSource/index.html index d0031c00c..b29d62842 100644 --- a/app/src/main/assets/web/bookSource/index.html +++ b/app/src/main/assets/web/bookSource/index.html @@ -250,6 +250,11 @@ +