diff --git a/youtube_dl/extractor/ceskatelevize.py b/youtube_dl/extractor/ceskatelevize.py index b1c683787..59f2a8e45 100644 --- a/youtube_dl/extractor/ceskatelevize.py +++ b/youtube_dl/extractor/ceskatelevize.py @@ -8,7 +8,8 @@ from ..utils import ( compat_urllib_request, compat_urllib_parse, - compat_urllib_parse_urlparse + compat_urllib_parse_urlparse, + ExtractorError, ) @@ -49,6 +50,10 @@ def _real_extract(self, url): webpage = self._download_webpage(url, video_id) + if '

Chyba konfigurace prohlížeče.

' not in webpage: + msg = self._html_search_regex(r'

(.+?)

', webpage, 'error-message') + raise ExtractorError(msg.replace('
', ' ')) + typ = self._html_search_regex(r'getPlaylistUrl\(\[\{"type":"(.+?)","id":".+?"\}\],', webpage, 'type') episode_id = self._html_search_regex(r'getPlaylistUrl\(\[\{"type":".+?","id":"(.+?)"\}\],', webpage, 'episode_id')