diff --git a/app/src/main/java/io/legado/app/data/entities/BookSource.kt b/app/src/main/java/io/legado/app/data/entities/BookSource.kt index 8addf77db..fc79db4c5 100644 --- a/app/src/main/java/io/legado/app/data/entities/BookSource.kt +++ b/app/src/main/java/io/legado/app/data/entities/BookSource.kt @@ -66,6 +66,7 @@ data class BookSource( @IgnoredOnParcel var contentRuleV: ContentRule? = null + @Throws(Exception::class) fun getHeaderMap(): Map { val headerMap = HashMap() headerMap["User-Agent"] = App.INSTANCE.getPrefString("user_agent") ?: userAgent @@ -84,7 +85,6 @@ data class BookSource( return headerMap } - fun getSearchRule(): SearchRule { searchRuleV ?: let { searchRuleV = GSON.fromJsonObject(ruleSearch)