diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-04-29 22:49:47 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-04-29 22:54:52 +0700 |
commit | e5eadfa82f10bda43294d1da85024eec29c7973f (patch) | |
tree | cb4d0e3679f654c22ebace9db27ef7d00b8c2ada /youtube_dl/extractor/udemy.py | |
parent | 30226342ab346263b684170c4ce7d5266fec212e (diff) |
[udemy,xiami,yandexmusic] Override _download_webpage_handle instead of _download_webpage
Diffstat (limited to 'youtube_dl/extractor/udemy.py')
-rw-r--r-- | youtube_dl/extractor/udemy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py index 6d6c0a98f..439ed2a89 100644 --- a/youtube_dl/extractor/udemy.py +++ b/youtube_dl/extractor/udemy.py @@ -115,9 +115,9 @@ class UdemyIE(InfoExtractor): error_str += ' - %s' % error_data.get('formErrors') raise ExtractorError(error_str, expected=True) - def _download_webpage(self, *args, **kwargs): + def _download_webpage_handle(self, *args, **kwargs): kwargs.setdefault('headers', {})['User-Agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4' - return super(UdemyIE, self)._download_webpage( + return super(UdemyIE, self)._download_webpage_handle( *args, **compat_kwargs(kwargs)) def _download_json(self, url_or_request, *args, **kwargs): |