diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-02-20 01:00:53 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-02-20 01:00:53 +0700 |
commit | 8ffb8e63fe2853f9e51420ba224db428f1241c35 (patch) | |
tree | f4d6bc893d8dfc6c7c57087e71c405d605cf2a69 | |
parent | 983e9b774643fc588fbfb51d314381025ffac248 (diff) |
[prosiebensat1] Throw ExtractionError on unsupported page type (closes #12180)
-rw-r--r-- | youtube_dl/extractor/prosiebensat1.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/prosiebensat1.py b/youtube_dl/extractor/prosiebensat1.py index 5091d8456..1245309a7 100644 --- a/youtube_dl/extractor/prosiebensat1.py +++ b/youtube_dl/extractor/prosiebensat1.py @@ -424,3 +424,6 @@ class ProSiebenSat1IE(ProSiebenSat1BaseIE): return self._extract_clip(url, webpage) elif page_type == 'playlist': return self._extract_playlist(url, webpage) + else: + raise ExtractorError( + 'Unsupported page type %s' % page_type, expected=True) |