aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2016-10-07 15:53:03 +0100
committerRemita Amine <remitamine@gmail.com>2016-10-07 15:53:16 +0100
commit3c6b3bf2217e91c0d01ca65fa2b013ffa132fdbc (patch)
treecd0242b7f2c20f24522dec1f8a07fded6ea8c885
parent38588ab9770813cb92013b870edc15def4f9ac1c (diff)
[iprima] detect geo restriction
-rw-r--r--youtube_dl/extractor/iprima.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.py
index 788bbe0d5..da2cdc656 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 {