diff --git a/app/src/main/java/io/legado/app/data/entities/BookChapter.kt b/app/src/main/java/io/legado/app/data/entities/BookChapter.kt index b88151e5d..ba5575cf3 100644 --- a/app/src/main/java/io/legado/app/data/entities/BookChapter.kt +++ b/app/src/main/java/io/legado/app/data/entities/BookChapter.kt @@ -15,10 +15,8 @@ import kotlinx.android.parcel.Parcelize @Entity( tableName = "chapters", primaryKeys = ["url", "bookUrl"], - indices = [(Index(value = ["bookUrl"], unique = false)), (Index( - value = ["bookUrl", "index"], - unique = true - ))], + indices = [(Index(value = ["bookUrl"], unique = false)), + (Index(value = ["bookUrl", "index"], unique = true))], foreignKeys = [(ForeignKey( entity = Book::class, parentColumns = ["bookUrl"], diff --git a/app/src/main/java/io/legado/app/data/entities/SearchBook.kt b/app/src/main/java/io/legado/app/data/entities/SearchBook.kt index 59ae54492..8203413d6 100644 --- a/app/src/main/java/io/legado/app/data/entities/SearchBook.kt +++ b/app/src/main/java/io/legado/app/data/entities/SearchBook.kt @@ -10,7 +10,8 @@ import kotlinx.android.parcel.Parcelize @Parcelize @Entity( tableName = "searchBooks", - indices = [(Index(value = ["bookUrl"], unique = true))], + indices = [(Index(value = ["bookUrl"], unique = true)), + (Index(value = ["bookSourceUrl"], unique = false))], foreignKeys = [(ForeignKey( entity = BookSource::class, parentColumns = ["bookSourceUrl"], diff --git a/app/src/main/java/io/legado/app/model/Debug.kt b/app/src/main/java/io/legado/app/model/Debug.kt index f236af2ee..0643a2a35 100644 --- a/app/src/main/java/io/legado/app/model/Debug.kt +++ b/app/src/main/java/io/legado/app/model/Debug.kt @@ -54,7 +54,7 @@ object Debug { cancelDebug() debugSource = rssSource.sourceUrl log(debugSource, "︾开始解析RSS") - Rss.getArticles(rssSource) + Rss.getArticles(rssSource, 1) .onSuccess { if (it == null) { log(debugSource, "︽解析失败", state = -1)