pull/274/head
gedoor 4 years ago
parent ced13d2544
commit f7bb3658ab
  1. 2
      app/src/main/java/io/legado/app/data/entities/Book.kt
  2. 3
      app/src/main/java/io/legado/app/help/http/HttpHelper.kt

@ -23,7 +23,7 @@ import kotlin.math.max
) )
data class Book( data class Book(
@PrimaryKey @PrimaryKey
override var bookUrl: String = "", // 详情页Url(本地书源存储完整文件路径) override var bookUrl: String = "", // 详情页Url(本地书源存储完整文件路径)
var tocUrl: String = "", // 目录页Url (toc=table of Contents) var tocUrl: String = "", // 目录页Url (toc=table of Contents)
var origin: String = BookType.local, // 书源URL(默认BookType.local) var origin: String = BookType.local, // 书源URL(默认BookType.local)
var originName: String = "", //书源名称 or 本地书籍文件名 var originName: String = "", //书源名称 or 本地书籍文件名

@ -19,8 +19,7 @@ object HttpHelper {
val client: OkHttpClient by lazy { val client: OkHttpClient by lazy {
val cookieJar = val cookieJar = PersistentCookieJar(SetCookieCache(), CookieStore)
PersistentCookieJar(SetCookieCache(), CookieStore)
val specs = arrayListOf( val specs = arrayListOf(
ConnectionSpec.MODERN_TLS, ConnectionSpec.MODERN_TLS,

Loading…
Cancel
Save