aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-22 21:54:32 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-22 21:54:32 +0600
commit9612f2339909f958f0c7ee7ccc370151ec28358d (patch)
treed44e49dc4b9a4140e89e92bb9b84fd98d7db383e /youtube_dl
parentcccedc1aa43f94ce4f8fa6f807a5301250c2213c (diff)
[viewster] Detect video geo restriction
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/viewster.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/viewster.py b/youtube_dl/extractor/viewster.py
index f8f4143c6..7c4328efb 100644
--- a/youtube_dl/extractor/viewster.py
+++ b/youtube_dl/extractor/viewster.py
@@ -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', {})