[udemy,xiami,yandexmusic] Override _download_webpage_handle instead of _download_webpage
This commit is contained in:
parent
30226342ab
commit
e5eadfa82f
3 changed files with 6 additions and 6 deletions
|
@ -34,8 +34,8 @@ class YandexMusicBaseIE(InfoExtractor):
|
|||
'youtube-dl with --cookies',
|
||||
expected=True)
|
||||
|
||||
def _download_webpage(self, *args, **kwargs):
|
||||
webpage = super(YandexMusicBaseIE, self)._download_webpage(*args, **kwargs)
|
||||
def _download_webpage_handle(self, *args, **kwargs):
|
||||
webpage = super(YandexMusicBaseIE, self)._download_webpage_handle(*args, **kwargs)
|
||||
if 'Нам очень жаль, но запросы, поступившие с вашего IP-адреса, похожи на автоматические.' in webpage:
|
||||
self._raise_captcha()
|
||||
return webpage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue