[iprima] Fix permission check regex
[youtube-dl] / youtube_dl / extractor / iprima.py
index 6ca0e9122a51ebdf621ed4d999e4065700c1c48c..d1defd363c5fe9c86330236f53b8aa21bfe65a38 100644 (file)
@@ -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*</div>', webpage):
+        if re.search(r'Nemáte oprávnění přistupovat na tuto stránku\.\s*</div>', webpage):
             raise ExtractorError(
                 '%s said: You do not have permission to access this page' % self.IE_NAME, expected=True)