Commit 2ff8edca authored by Georg Teufelberger's avatar Georg Teufelberger
Browse files

Update headers for cookie request

Something changed something with the backend, so the "Referer" is now
required when trying to acquire a cookie for "ETH" protected videos
parent e50a0dd0
......@@ -164,7 +164,7 @@ def acquire_login_cookie(protection, vo_link, user, passw):
(user, passw) = get_credentials(user, passw)
# Setup headers and content to send
headers = { "Content-Type": "application/x-www-form-urlencoded", "CSRF-Token": "undefined", 'User-Agent': user_agent}
headers = {"User-Agent": user_agent, "Referer": vo_link+".html"}
data = { "__charset__": "utf-8", "j_validate": True, "j_username": user, "j_password": passw}
# Request login-cookie
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment