mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 18:41:29 +00:00
[funimation] Fix login message
This commit is contained in:
parent
b4c299bad0
commit
411e5b88c9
|
@ -38,7 +38,8 @@ def _login(self):
|
||||||
login_request = sanitized_Request(login_url, data)
|
login_request = sanitized_Request(login_url, data)
|
||||||
login_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
|
login_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
|
||||||
try:
|
try:
|
||||||
login = self._download_webpage(login_request, login_url)
|
login = self._download_webpage(
|
||||||
|
login_request, None, 'Logging in as %s' % username)
|
||||||
except ExtractorError as e:
|
except ExtractorError as e:
|
||||||
if isinstance(e.cause, compat_HTTPError) and e.cause.code == 403:
|
if isinstance(e.cause, compat_HTTPError) and e.cause.code == 403:
|
||||||
raise ExtractorError('Funimation is not available in your region.', expected=True)
|
raise ExtractorError('Funimation is not available in your region.', expected=True)
|
||||||
|
|
Loading…
Reference in a new issue