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) {