From 49bbc2849b1a2697b0fdb015af670eef39ed4e87 Mon Sep 17 00:00:00 2001 From: Thomas Gorgolione Date: Thu, 5 Aug 2021 19:46:01 -0400 Subject: [PATCH] Fix for login issues due to locast using some kind of captcha (issue #272) --- lib/locast_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/locast_service.py b/lib/locast_service.py index e3e7f07..020947d 100644 --- a/lib/locast_service.py +++ b/lib/locast_service.py @@ -52,8 +52,8 @@ def login(self, username, password): # {"username":"thomas_vg1@hotmail.com","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)