Skip to content

Commit

Permalink
Quick bugfix on Login
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Kalanyr committed Apr 28, 2018
1 parent 908836a commit bbaf4cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gogrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit bbaf4cf

Please sign in to comment.