From 6397e8d6e1c4fdd5f0f1ffc3c1e9914e918c0041 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 13 Jul 2021 13:41:02 +0800 Subject: [PATCH 1/3] =?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 0d5438348..0d5a5a3f7 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.isEmpty() || textS.contains(url)) break - - textS.add(url) + if (url.isNotBlank() && !textS.contains(url)) { + textS.add(url) + } } } } catch (e: Exception) { From b9ce143de5292629624b10a6b89e384b17292549 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 13 Jul 2021 13:49:45 +0800 Subject: [PATCH 2/3] =?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) { From 28c301febb089bb0386d1afac3a5c387b6ade3da Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 13 Jul 2021 14:20:41 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/updateLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index 5dce9caaf..210e30e78 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -14,6 +14,7 @@ * 禁止在js里通过geClass反射 * 禁止在js里创建File对象 * 禁止在js里获取Packages scope +2. 优化并修复bug **2021/07/10** 1. 阅读界面长按菜单改回原来样式