From db50ec125a8af5fd19e62b9516e6523617be1768 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 4 Nov 2019 10:43:52 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/entities/Book.kt | 1 + app/src/main/java/io/legado/app/data/entities/SearchBook.kt | 2 ++ app/src/main/java/io/legado/app/model/webbook/BookList.kt | 2 ++ 3 files changed, 5 insertions(+) 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)