1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 18:22:21 +00:00

[viewster] Detect video geo restriction

This commit is contained in:
Sergey M․ 2015-09-22 21:54:32 +06:00
parent cccedc1aa4
commit 9612f23399

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', {})