From bbaf4cf5200a99390f85dfa2a4d4c8a1dfa42841 Mon Sep 17 00:00:00 2001 From: Kalanyr Date: Sat, 28 Apr 2018 16:55:09 +1000 Subject: [PATCH] Quick bugfix on Login Fixes cmd_login due to GOG changing the a HTML element which prevented identification of Recaptcha being activated. (This commit is not found on Dev as that resolves this step differently) --- gogrepo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gogrepo.py b/gogrepo.py index 4219826..ea24a13 100755 --- a/gogrepo.py +++ b/gogrepo.py @@ -946,7 +946,7 @@ def cmd_login(user, passwd): with request(login_data['auth_url'], delay=0) as page: etree = html5lib.parse(page, namespaceHTMLElements=False) # Bail if we find a request for a reCAPTCHA - if len(etree.findall('.//div[@class="g-recaptcha"]')) > 0: + if len(etree.findall('.//div[@class="g-recaptcha form__recaptcha"]')) > 0: error("cannot continue, gog is asking for a reCAPTCHA :( try again in a few minutes.") return for elm in etree.findall('.//input'):