From b9ce143de5292629624b10a6b89e384b17292549 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 13 Jul 2021 13:49:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt index 0d5a5a3f7..52ce74772 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSoup.kt @@ -245,9 +245,9 @@ class AnalyzeByJSoup(doc: Any) { val url = element.attr(lastRule) - if (url.isNotBlank() && !textS.contains(url)) { - textS.add(url) - } + if (url.isBlank() || textS.contains(url)) continue + + textS.add(url) } } } catch (e: Exception) {