|
@@ -18,6 +18,7 @@ import io.legado.app.model.analyzeRule.AnalyzeUrl
|
|
|
import io.legado.app.utils.*
|
|
import io.legado.app.utils.*
|
|
|
import splitties.init.appCtx
|
|
import splitties.init.appCtx
|
|
|
import java.io.*
|
|
import java.io.*
|
|
|
|
|
+import java.net.URLEncoder
|
|
|
import java.util.regex.Pattern
|
|
import java.util.regex.Pattern
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -274,6 +275,7 @@ object LocalBook {
|
|
|
fileName: String
|
|
fileName: String
|
|
|
): Boolean {
|
|
): Boolean {
|
|
|
return appDb.bookDao.hasFile(fileName) == true
|
|
return appDb.bookDao.hasFile(fileName) == true
|
|
|
|
|
+ || appDb.bookDao.hasFile(URLEncoder.encode(fileName, "UTF-8")) == true
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//文件类书源 合并在线书籍信息 在线 > 本地
|
|
//文件类书源 合并在线书籍信息 在线 > 本地
|