exclude more devices
This commit is contained in:
@@ -23,6 +23,7 @@ const CAPTCHA_ERROR_MESSAGE = "Error verifying captcha, please try again"
|
||||
const CAPTCHA_ERROR_MESSAGE_FR = "La vérification du captcha a échoué"
|
||||
const BLOCKED_MSG_EN = "have been blocked"
|
||||
const BLOCKED_MSG_FR = "avez été bloqué"
|
||||
const BLOCKED_MSG_FR_3 = "a été bloqué"
|
||||
const BLOCKED_MSG_FR_2 = "Pourquoi ce blocage"
|
||||
const CHECKING_MSG_FR = "Verifying"
|
||||
const CHECKING_MSG_FR_2 = "Vérification de l'appareil"
|
||||
@@ -104,7 +105,7 @@ class OCRChecker {
|
||||
return OCRResult.FILL_FIELD
|
||||
} else if (result.includes(CAPTCHA_ERROR_MESSAGE) || result.includes(CAPTCHA_ERROR_MESSAGE_FR)) {
|
||||
return OCRResult.RECAPTCHA_ERROR
|
||||
} else if (result.includes(BLOCKED_MSG_EN) || result.includes(BLOCKED_MSG_FR) || result.includes(BLOCKED_MSG_FR_2)) {
|
||||
} else if (result.includes(BLOCKED_MSG_EN) || result.includes(BLOCKED_MSG_FR) || result.includes(BLOCKED_MSG_FR_2) || result.includes(BLOCKED_MSG_FR_3)) {
|
||||
await this.deleteFile(fileName)
|
||||
return OCRResult.BLOCKED
|
||||
} else if (result.includes(ERR_CACHE_MISS) || result.includes(ERR_CACHE_MISS_2) || result.includes(ERR_CACHE_MISS_3) || result.includes(ERR_CACHE_MISS_4)) {
|
||||
@@ -153,7 +154,7 @@ class OCRChecker {
|
||||
return OCRResult.TO_SKIP
|
||||
} else if (result.includes(RECAPTCHA_FAILED_FR)) {
|
||||
return OCRResult.TERMINAED
|
||||
} else if (result.includes(NO_INTERNET_FR)||result.includes(NO_INTERNET_FR_2)) {
|
||||
} else if (result.includes(NO_INTERNET_FR) || result.includes(NO_INTERNET_FR_2)) {
|
||||
await this.deleteFile(fileName)
|
||||
return OCRResult.NO_INTERNET
|
||||
} else if (result.includes(BRAVE_SKIP_DEFAULT_PAGE) || result.includes(BRAVE_SKIP_DEFAULT_PAGE_2)) {
|
||||
|
||||
Reference in New Issue
Block a user