Skip to content

Commit 9f95159

Browse files
committed
Comment out checkCleverDialer checker
1 parent a2a42a2 commit 9f95159

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/src/main/java/com/addev/listaspam/utils/SpamUtils.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class SpamUtils {
6161
val spamCheckers = listOf(
6262
::checkListaSpam,
6363
::checkResponderono,
64-
::checkCleverDialer
64+
// ::checkCleverDialer
6565
)
6666

6767
val isSpam = spamCheckers.any { checker ->
@@ -102,7 +102,7 @@ class SpamUtils {
102102
val url = CLEVER_DIALER_URL_TEMPLATE.format(number)
103103
return checkUrlForSpam(
104104
url,
105-
".front-stars.stars-1, .front-stars.stars-2, .front-stars.stars-3"
105+
".front-stars.stars-1 #star-full-black, .front-stars.stars-2 #star-full-black, .front-stars.stars-3 #star-full-black"
106106
)
107107
}
108108

@@ -116,7 +116,7 @@ class SpamUtils {
116116
val url = LISTA_SPAM_URL_TEMPLATE.format(number)
117117
return checkUrlForSpam(
118118
url,
119-
".phone_rating.result-3, .phone_rating.result-2, .phone_rating.result-1"
119+
".data_top .phone_rating.result-3, .data_top .phone_rating.result-2, .data_top .phone_rating.result-1, alert-icon-big"
120120
)
121121
}
122122

@@ -146,7 +146,8 @@ class SpamUtils {
146146
val body = response.body?.string()
147147
body?.let {
148148
val doc = Jsoup.parse(it)
149-
doc.select(cssSelector).isNotEmpty()
149+
val found = doc.select(cssSelector).first() != null
150+
found
150151
} ?: false
151152
} catch (e: IOException) {
152153
e.printStackTrace()

0 commit comments

Comments
 (0)