support moto
This commit is contained in:
@@ -36,6 +36,7 @@ const ERR_CACHE_MISS_4 = "renvoyer les données"
|
||||
const ERR_EMPTY_RESPONSE = "ERR_EMPTY_RESPONSE"
|
||||
const ERR_SSL_PROTOCOL = "SSL_PROTOCOL_ERROR"
|
||||
const SLIDING_CAPTCHA_FR = "Pourquoi cette vérification"
|
||||
const SLIDING_CAPTCHA_RETRY_FR = "RÉESSAYER"
|
||||
const SLIDING_CAPTCHA_LOADING_FR = "Chargement."
|
||||
const SLIDING_CAPTCHA_FR_2 = "Glissez vers la droite pour"
|
||||
const SLIDING_CAPTCHA_FR_3 = "la droite pour completer le puzzle"
|
||||
@@ -151,6 +152,10 @@ class OCRChecker {
|
||||
// if (result.includes("rac"))
|
||||
// return OCRResult.SLIDING_CAPTCHA_REFRESH
|
||||
return OCRResult.SLIDING_CAPTCHA
|
||||
} else if (result.includes(SLIDING_CAPTCHA_RETRY_FR)
|
||||
) {
|
||||
await this.deleteFile(fileName)
|
||||
return OCRResult.TERMINAED
|
||||
} else if (result.includes(WELCOME_MESSAGE_FR)
|
||||
|| result.includes(WELCOME_MESSAGE_FR_2)
|
||||
|| result.includes(WELCOME_MESSAGE_FR_3)
|
||||
|
||||
Reference in New Issue
Block a user