pull/46/head
kunfei 5 years ago
parent ed65f0022f
commit db50ec125a
  1. 1
      app/src/main/java/io/legado/app/data/entities/Book.kt
  2. 2
      app/src/main/java/io/legado/app/data/entities/SearchBook.kt
  3. 2
      app/src/main/java/io/legado/app/model/webbook/BookList.kt

@ -78,6 +78,7 @@ data class Book(
bookUrl = bookUrl, bookUrl = bookUrl,
origin = origin, origin = origin,
originName = originName, originName = originName,
type = type,
wordCount = wordCount, wordCount = wordCount,
latestChapterTitle = latestChapterTitle, latestChapterTitle = latestChapterTitle,
coverUrl = coverUrl, coverUrl = coverUrl,

@ -17,6 +17,7 @@ data class SearchBook(
var bookUrl: String = "", var bookUrl: String = "",
var origin: String = "", // 书源规则 var origin: String = "", // 书源规则
var originName: String = "", var originName: String = "",
var type: Int = 0, // @BookType
var name: String = "", var name: String = "",
var author: String = "", var author: String = "",
override var kind: String? = null, override var kind: String? = null,
@ -84,6 +85,7 @@ data class SearchBook(
bookUrl = bookUrl, bookUrl = bookUrl,
origin = origin, origin = origin,
originName = originName, originName = originName,
type = type,
wordCount = wordCount, wordCount = wordCount,
latestChapterTitle = latestChapterTitle, latestChapterTitle = latestChapterTitle,
coverUrl = coverUrl, coverUrl = coverUrl,

@ -110,6 +110,7 @@ object BookList {
searchBook.origin = bookSource.bookSourceUrl searchBook.origin = bookSource.bookSourceUrl
searchBook.originName = bookSource.bookSourceName searchBook.originName = bookSource.bookSourceName
searchBook.originOrder = bookSource.customOrder searchBook.originOrder = bookSource.customOrder
searchBook.type = bookSource.bookSourceType
analyzeRule.setBook(searchBook) analyzeRule.setBook(searchBook)
with(bookSource.getBookInfoRule()) { with(bookSource.getBookInfoRule()) {
init?.let { init?.let {
@ -164,6 +165,7 @@ object BookList {
val searchBook = SearchBook() val searchBook = SearchBook()
searchBook.origin = bookSource.bookSourceUrl searchBook.origin = bookSource.bookSourceUrl
searchBook.originName = bookSource.bookSourceName searchBook.originName = bookSource.bookSourceName
searchBook.type = bookSource.bookSourceType
searchBook.originOrder = bookSource.customOrder searchBook.originOrder = bookSource.customOrder
analyzeRule.setBook(searchBook) analyzeRule.setBook(searchBook)
analyzeRule.setContent(item) analyzeRule.setContent(item)

Loading…
Cancel
Save