Browse Source

[iprima] detect geo restriction

totalwebcasting
Remita Amine 8 years ago
parent
commit
3c6b3bf221
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      youtube_dl/extractor/iprima.py

+ 3
- 0
youtube_dl/extractor/iprima.py View File

@ -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 {


Loading…
Cancel
Save