From 1c1a0036477d06f08cfface1fcf55a829101dfab Mon Sep 17 00:00:00 2001 From: Idan Cohen Date: Sat, 15 Jul 2023 01:37:17 +0300 Subject: [PATCH] change login function --- test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.py b/test.py index 6b8654c..0da28e3 100644 --- a/test.py +++ b/test.py @@ -12,8 +12,8 @@ def get_sdarot_cookies(): def login_to_sdarot_tv(username, password, cookies): DATA = { 'location': '/', - 'username': 'idan92', - 'password': 'asdqwe123', + 'username': username, + 'password': password, 'submit_login': '' } return requests.post(f'https://{SDAROT_DOMAIN}/login', data=DATA, cookies=cookies) @@ -75,7 +75,7 @@ def main(): sid = get_sid(series, "איש משפחה")[0]["id"] token = create_new_token(sdarot_cookies, sid, 1, 1) print("Start 30 seconds...") - for x in range(32): + for x in range(30): print(x) time.sleep(1) video_url = get_video_url(sdarot_cookies, token, sid, 1, 1)