Updated sproutvideo.com

This commit is contained in:
simon 2018-03-02 11:04:36 -05:00
parent eb56370fa2
commit 9cd6224705

View File

@ -24,12 +24,12 @@ if args.user:
payload = {"email": args.user, "password": args.password, "host": "unknown", "url": "unknown",
"params": "host=unknown&url=unknown"}
url = args.url.replace("embed", "videos")
url = args.url.replace("videos.", "")
url = url.replace("embed", "videos")
url = url[:url.rfind("/")+1]
url += "video_login?embed=true"
r = requests.post(url, headers=headers, data=payload)
else:
payload = {"password": args.password, "host": "unknown", "url": "unknown", "queryParams": ""}