projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cccedc1
)
[viewster] Detect video geo restriction
author
Sergey M․
<dstftw@gmail.com>
Tue, 22 Sep 2015 15:54:32 +0000
(21:54 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 22 Sep 2015 15:54:32 +0000
(21:54 +0600)
youtube_dl/extractor/viewster.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/viewster.py
b/youtube_dl/extractor/viewster.py
index f8f4143c63edf8aa9dc1bd00ea6aef9c56b4607c..7c4328efb8ad50530ba6af410f2683cd621cd240 100644
(file)
--- 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', {})