A feature-rich command-line audio/video downloader
[iprima] detect geo restriction
Remita Amine3c6b3bf2217e
diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.pyindex 788bbe0d5c..da2cdc656a 100644--- a/youtube_dl/extractor/iprima.py+++ b/youtube_dl/extractor/iprima.py@@ -81,6 +81,9 @@ class IPrimaIE(InfoExtractor):for _, src in re.findall(r'src["\']\s*:\s*(["\'])(.+?)\1', playerpage):extract_formats(src)+ if not formats and '>GEO_IP_NOT_ALLOWED<' in playerpage:+ self.raise_geo_restricted()+self._sort_formats(formats)return {