mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 18:41:29 +00:00
[funimation] Real UA is required for login
This commit is contained in:
parent
40ca5b04f4
commit
59a4ff482a
|
@ -34,8 +34,10 @@ def _login(self):
|
||||||
'email_field': username,
|
'email_field': username,
|
||||||
'password_field': password,
|
'password_field': password,
|
||||||
}))
|
}))
|
||||||
login_request = sanitized_Request(login_url, data)
|
login_request = sanitized_Request(login_url, data, headers={
|
||||||
login_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
|
'User-Agent': 'Mozilla/5.0 (Windows NT 5.2; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0',
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded'
|
||||||
|
})
|
||||||
try:
|
try:
|
||||||
login = self._download_webpage(
|
login = self._download_webpage(
|
||||||
login_request, None, 'Logging in as %s' % username)
|
login_request, None, 'Logging in as %s' % username)
|
||||||
|
|
Loading…
Reference in a new issue