Skip to content

Commit

Permalink
Remove broken reCAPTCHA check
Browse files Browse the repository at this point in the history
  • Loading branch information
eddie3 authored Dec 27, 2022
1 parent 03a88ec commit 2cc5da4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions gogrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,6 @@ def cmd_login(user, passwd):
# fetch the login token
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 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'):
if elm.attrib['id'] == 'login__token':
login_data['login_token'] = elm.attrib['value']
Expand Down

0 comments on commit 2cc5da4

Please sign in to comment.