Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: unknown url type: undefined #36

Closed
albert2742 opened this issue Aug 1, 2018 · 1 comment
Closed

ValueError: unknown url type: undefined #36

albert2742 opened this issue Aug 1, 2018 · 1 comment

Comments

@albert2742
Copy link

12:05:05 | attempting gog login as 'REDACTED@EMAIL.COM' ...
12:05:05 | fatal...
Traceback (most recent call last):
File "D:\GOG Downloads\gogrepo.py", line 1121, in
main(process_argv(sys.argv))
File "D:\GOG Downloads\gogrepo.py", line 1093, in main
cmd_login(args.username, args.password)
File "D:\GOG Downloads\gogrepo.py", line 550, in cmd_login
with request(login_data['auth_url'], delay=0) as page:
File "D:\GOG Downloads\gogrepo.py", line 170, in request
page = opener.open(req)
File "C:\Program Files (x86)\Python\lib\urllib2.py", line 421, in open
protocol = req.get_type()
File "C:\Program Files (x86)\Python\lib\urllib2.py", line 283, in get_type
raise ValueError, "unknown url type: %s" % self.__original

@oriwheb
Copy link

oriwheb commented Aug 14, 2018

This is a known and solved issue. You can solve this yourself by changing the line
"login_data['auth_url'] = elm.text.split("'")[1]"
to
"login_data['auth_url'] = elm.text.split("'")[3]"

Eddie can fix this on his own (heck, it's just one number), but I'll put a pull request anyway.

@eddie3 eddie3 closed this as completed Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants