diff --git a/core/autoProcess/autoProcessTV.py b/core/autoProcess/autoProcessTV.py index 9bec4eb1..ec833624 100644 --- a/core/autoProcess/autoProcessTV.py +++ b/core/autoProcess/autoProcessTV.py @@ -270,9 +270,9 @@ class autoProcessTV(object): s = requests.Session() login = "{0}{1}:{2}{3}/login".format(protocol, host, port, web_root) login_params = {'username': username, 'password': password} - r = s.get(login, verify=False, timeour=(30,60)) - if r.status_code == 401 and r.cookies.get('_xsrf'): - login_params['_xsrf'] = r.cookies.get('_xsrf') + r = s.get(login, verify=False, timeour=(30,60)) + if r.status_code == 401 and r.cookies.get('_xsrf'): + login_params['_xsrf'] = r.cookies.get('_xsrf') s.post(login, data=login_params, stream=True, verify=False, timeout=(30, 60)) r = s.get(url, auth=(username, password), params=fork_params, stream=True, verify=False, timeout=(30, 1800)) elif section == "NzbDrone":