From 3be66e388add4afb2ee1441b8baac884c577b8c3 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 21 Oct 2019 11:00:58 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/entities/BookSource.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)