@ -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"],
@ -10,7 +10,8 @@ import kotlinx.android.parcel.Parcelize
@Parcelize
tableName = "searchBooks",
indices = [(Index(value = ["bookUrl"], unique = true))],
indices = [(Index(value = ["bookUrl"], unique = true)),
(Index(value = ["bookSourceUrl"], unique = false))],
entity = BookSource::class,
parentColumns = ["bookSourceUrl"],
@ -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)