Skip to content

Commit

Permalink
Fix for login issues due to locast using some kind of captcha (issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
tgorgdotcom committed Aug 5, 2021
1 parent 4cc03b2 commit 49bbc28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/locast_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 49bbc28

Please sign in to comment.