Disable chrome login;

since it doesn't work anyway
This commit is contained in:
DevilXD committed 2022-12-07 13:01:06 +01:00
1 parent c15af4e8d8
commit 57baa4fc1e
4 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@
"twofa_code_required": "Token F2A Requerido."
},
"error": {
"captcha": "Seu login foi negado pelo CAPTCHA.\nPor favor tente em aproximadamente +12 houras.",
"captcha": "Seu login foi negado pelo CAPTCHA.\nPor favor tente em aproximadamente 12+ houras.",
"site_down": "Twitch esta fora do ar, tentando em {seconds} segundos...",
"no_connection": "Sem conecao com a TWITCH, reconectando em {seconds} segundos..."
},
+2 -4
View File
@@ -171,14 +171,12 @@ if __name__ == "__main__":
loop.run_until_complete(client.run())
except CaptchaRequired:
exit_status = 1
msg = _("error", "captcha")
client.prevent_close()
client.print(msg)
client.print(_("error", "captcha"))
except Exception:
exit_status = 1
msg = "Fatal error encountered:\n"
client.prevent_close()
client.print(msg)
client.print("Fatal error encountered:\n")
client.print(traceback.format_exc())
finally:
signal.signal(signal.SIGINT, signal.SIG_DFL)
+1 -1
View File
@@ -247,7 +247,7 @@ default_translation: Translation = {
"twofa_code_required": "2FA token required.",
},
"error": {
"captcha": "Your login attempt was denied by CAPTCHA.\nPlease try again in +12 hours.",
"captcha": "Your login attempt was denied by CAPTCHA.\nPlease try again in 12+ hours.",
"site_down": "Twitch is down, retrying in {seconds} seconds...",
"no_connection": "Cannot connect to Twitch, retrying in {seconds} seconds...",
},
+3 -1
View File
@@ -36,6 +36,7 @@ from websocket import WebsocketPool
from inventory import DropsCampaign
from exceptions import (
MinerException,
CaptchaRequired,
ExitRequest,
LoginException,
ReloadRequest,
@@ -390,7 +391,8 @@ class _AuthState:
break
if use_chrome:
await self._chrome_login()
# await self._chrome_login()
raise CaptchaRequired()
if hasattr(self, "access_token"):
logger.debug("Access token granted")