X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fiprima.py;h=d1defd363c5fe9c86330236f53b8aa21bfe65a38;hb=8f0c8fb45282caa706c267700f51734bb474fefc;hp=6ca0e9122a51ebdf621ed4d999e4065700c1c48c;hpb=826422351152e0e0840bca737bdaccc238d423fd;p=youtube-dl diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.py index 6ca0e9122..d1defd363 100644 --- a/youtube_dl/extractor/iprima.py +++ b/youtube_dl/extractor/iprima.py @@ -39,6 +39,7 @@ class IPrimaIE(InfoExtractor): 'params': { 'skip_download': True, # requires rtmpdump }, + 'skip': 'Do not have permission to access this page', }] def _real_extract(self, url): @@ -47,7 +48,7 @@ class IPrimaIE(InfoExtractor): webpage = self._download_webpage(url, video_id) - if re.search(r'Nemáte oprávnění přistupovat na tuto stránku.\s*', webpage): + if re.search(r'Nemáte oprávnění přistupovat na tuto stránku\.\s*', webpage): raise ExtractorError( '%s said: You do not have permission to access this page' % self.IE_NAME, expected=True)