Support redirect_path and redirect
This commit is contained in:
parent
a86922c470
commit
0b246a54a2
@ -88,7 +88,10 @@ class TwitchBaseIE(InfoExtractor):
|
||||
fail(response['message'])
|
||||
raise
|
||||
|
||||
redirect_url = urljoin(post_url, response['redirect'])
|
||||
redirect_url = urljoin(post_url, response.get('redirect'))
|
||||
if redirect_url is None:
|
||||
redirect_url = urljoin(post_url, response.get('redirect_path'))
|
||||
|
||||
return self._download_webpage_handle(
|
||||
redirect_url, None, 'Downloading login redirect page',
|
||||
headers=headers)
|
||||
|
Loading…
x
Reference in New Issue
Block a user