change login function

This commit is contained in:
2023-07-15 01:37:17 +03:00
parent d0ae2b48e5
commit 1c1a003647

View File

@@ -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)