diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-12-02 00:53:03 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-12-02 00:53:03 +0600 |
commit | 24121bc703152312cfbb70f01ebd39e2fe1197e5 (patch) | |
tree | 8772804358db8ee92e11713dca4e4f6f68ee553a /youtube_dl/extractor | |
parent | 9fc87fa767425ee7d56b2ce4650c9b06b480e005 (diff) |
[udemy] Make lecture downloading fatal
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/udemy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py index 2a54f3764..59832b1ec 100644 --- a/youtube_dl/extractor/udemy.py +++ b/youtube_dl/extractor/udemy.py @@ -57,7 +57,7 @@ class UdemyIE(InfoExtractor): 'fields[asset]': 'asset_type,stream_url,thumbnail_url,download_urls,data', 'instructorPreviewMode': 'False', })), - lecture_id, 'Downloading lecture JSON', fatal=False) + lecture_id, 'Downloading lecture JSON') def _handle_error(self, response): if not isinstance(response, dict): @@ -70,7 +70,7 @@ class UdemyIE(InfoExtractor): error_str += ' - %s' % error_data.get('formErrors') raise ExtractorError(error_str, expected=True) - def _download_json(self, url_or_request, video_id, note='Downloading JSON metadata', *args, **kwargs): + def _download_json(self, url_or_request, video_id, note='Downloading JSON metadata'): headers = { 'X-Udemy-Snail-Case': 'true', 'X-Requested-With': 'XMLHttpRequest', @@ -88,7 +88,7 @@ class UdemyIE(InfoExtractor): else: url_or_request = sanitized_Request(url_or_request, headers=headers) - response = super(UdemyIE, self)._download_json(url_or_request, video_id, note, *args, **kwargs) + response = super(UdemyIE, self)._download_json(url_or_request, video_id, note) self._handle_error(response) return response |