From 0ef292252eac1290d822867de8607d6ab3026595 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 15 Jun 2022 14:29:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/model/localBook/LocalBook.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt b/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt index 4fda21143..96d911b97 100644 --- a/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt +++ b/app/src/main/java/io/legado/app/model/localBook/LocalBook.kt @@ -18,6 +18,7 @@ import io.legado.app.model.analyzeRule.AnalyzeUrl import io.legado.app.utils.* import splitties.init.appCtx import java.io.* +import java.net.URLEncoder import java.util.regex.Pattern /** @@ -274,6 +275,7 @@ object LocalBook { fileName: String ): Boolean { return appDb.bookDao.hasFile(fileName) == true + || appDb.bookDao.hasFile(URLEncoder.encode(fileName, "UTF-8")) == true } //文件类书源 合并在线书籍信息 在线 > 本地