diff --git a/app/src/main/java/io/legado/app/data/entities/Book.kt b/app/src/main/java/io/legado/app/data/entities/Book.kt index 2b26dcf72..f04686bd8 100644 --- a/app/src/main/java/io/legado/app/data/entities/Book.kt +++ b/app/src/main/java/io/legado/app/data/entities/Book.kt @@ -78,6 +78,7 @@ data class Book( bookUrl = bookUrl, origin = origin, originName = originName, + type = type, wordCount = wordCount, latestChapterTitle = latestChapterTitle, coverUrl = coverUrl, 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 84ad58121..5d3fd9e1f 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 @@ -17,6 +17,7 @@ data class SearchBook( var bookUrl: String = "", var origin: String = "", // 书源规则 var originName: String = "", + var type: Int = 0, // @BookType var name: String = "", var author: String = "", override var kind: String? = null, @@ -84,6 +85,7 @@ data class SearchBook( bookUrl = bookUrl, origin = origin, originName = originName, + type = type, wordCount = wordCount, latestChapterTitle = latestChapterTitle, coverUrl = coverUrl, diff --git a/app/src/main/java/io/legado/app/model/webbook/BookList.kt b/app/src/main/java/io/legado/app/model/webbook/BookList.kt index b5f87d64e..a5c3aec17 100644 --- a/app/src/main/java/io/legado/app/model/webbook/BookList.kt +++ b/app/src/main/java/io/legado/app/model/webbook/BookList.kt @@ -110,6 +110,7 @@ object BookList { searchBook.origin = bookSource.bookSourceUrl searchBook.originName = bookSource.bookSourceName searchBook.originOrder = bookSource.customOrder + searchBook.type = bookSource.bookSourceType analyzeRule.setBook(searchBook) with(bookSource.getBookInfoRule()) { init?.let { @@ -164,6 +165,7 @@ object BookList { val searchBook = SearchBook() searchBook.origin = bookSource.bookSourceUrl searchBook.originName = bookSource.bookSourceName + searchBook.type = bookSource.bookSourceType searchBook.originOrder = bookSource.customOrder analyzeRule.setBook(searchBook) analyzeRule.setContent(item)