diff --git a/app/src/main/java/io/legado/app/data/entities/Book.kt b/app/src/main/java/io/legado/app/data/entities/Book.kt index d5ff08514..426913043 100644 --- a/app/src/main/java/io/legado/app/data/entities/Book.kt +++ b/app/src/main/java/io/legado/app/data/entities/Book.kt @@ -14,6 +14,7 @@ import io.legado.app.model.ReadBook import io.legado.app.utils.GSON import io.legado.app.utils.MD5Utils import io.legado.app.utils.fromJsonObject +import io.legado.app.utils.isUri import kotlinx.coroutines.runBlocking import kotlinx.parcelize.IgnoredOnParcel import kotlinx.parcelize.Parcelize @@ -108,7 +109,9 @@ data class Book( ) : Parcelable, BaseBook { fun isLocalBook(): Boolean { - return origin == BookType.local + //通过判断书籍链接来判断http* file:// content:// + //origin判断不可靠 http* BookType.local webDav:: + return origin == BookType.local || bookUrl.isUri() } fun isLocalTxt(): Boolean {