fix:booktype mismatch

pull/1701/head
Xwite 3 years ago
parent 8e3b3df458
commit 5c1deb66c3
  1. 2
      app/src/main/java/io/legado/app/constant/BookType.kt
  2. 2
      app/src/main/java/io/legado/app/data/entities/BookSource.kt

@ -5,7 +5,7 @@ import androidx.annotation.IntDef
object BookType { object BookType {
const val default = 0 // 0 文本 const val default = 0 // 0 文本
const val audio = 1 // 1 音频 const val audio = 1 // 1 音频
const val image = 3 //图片 const val image = 2 //图片
const val local = "loc_book" const val local = "loc_book"
@Target(AnnotationTarget.VALUE_PARAMETER) @Target(AnnotationTarget.VALUE_PARAMETER)

@ -26,7 +26,7 @@ data class BookSource(
var bookSourceName: String = "", var bookSourceName: String = "",
// 分组 // 分组
var bookSourceGroup: String? = null, var bookSourceGroup: String? = null,
// 类型,0 文本,1 音频, 3 图片 // 类型,0 文本,1 音频, 2 图片
@BookType.Type @BookType.Type
var bookSourceType: Int = 0, var bookSourceType: Int = 0,
// 详情页url正则 // 详情页url正则

Loading…
Cancel
Save