-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for login issues due to locast using some kind of captcha (issue #…
…272)
- Loading branch information
1 parent
4cc03b2
commit 49bbc28
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,8 +52,8 @@ def login(self, username, password): | |
# {"username":"[email protected]","password":"xxxxxxxx"} | ||
|
||
|
||
loginReq = urllib.request.Request('https://api.locastnet.org/api/user/login', | ||
('{"username":"' + username + '","password":"' + password + '"}').encode("utf-8"), | ||
loginReq = urllib.request.Request('https://api.locastnet.org/api/user/login?client_id=CqhAMsBw%2BnxTXSJMLGqyOw%3D%3D', | ||
('{"username":"' + username + '","password":"' + password + '","captcha":"locast2plex"}').encode("utf-8"), | ||
{'Content-Type': 'application/json', 'User-agent': self.DEFAULT_USER_AGENT}) | ||
|
||
loginOpn = urllib.request.urlopen(loginReq) | ||
|