Browse Source

[viewster] Detect video geo restriction

totalwebcasting
Sergey M․ 9 years ago
parent
commit
9612f23399
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      youtube_dl/extractor/viewster.py

+ 4
- 0
youtube_dl/extractor/viewster.py View File

@ -140,6 +140,10 @@ class ViewsterIE(InfoExtractor):
f['height'] = int_or_none(self._search_regex(
r'^(\d+)[pP]$', format_id, 'height', default=None))
formats.append(f)
if not formats and not info.get('LanguageSets') and not info.get('VODSettings'):
self.raise_geo_restricted()
self._sort_formats(formats)
synopsis = info.get('Synopsis', {})


Loading…
Cancel
Save