1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-28 17:40:58 +01:00

[prosiebensat1] Throw ExtractionError on unsupported page type (closes #12180)

This commit is contained in:
Sergey M․ 2017-02-20 01:00:53 +07:00
parent 983e9b7746
commit 8ffb8e63fe
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -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)