projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7163186
)
[vgtv] Improve geo restriction detection
author
Sergey M․
<dstftw@gmail.com>
Sat, 4 Feb 2017 11:55:31 +0000
(18:55 +0700)
committer
Sergey M
<dstftw@gmail.com>
Sat, 18 Feb 2017 21:10:08 +0000
(
05:10
+0800)
youtube_dl/extractor/vgtv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vgtv.py
b/youtube_dl/extractor/vgtv.py
index 8a574bc269789e14f3dcadd6167c5caaa46e49e3..1709fd6bbe779a7a7b4315c1016a67d536aa14b3 100644
(file)
--- a/
youtube_dl/extractor/vgtv.py
+++ b/
youtube_dl/extractor/vgtv.py
@@
-14,6
+14,7
@@
from ..utils import (
class VGTVIE(XstreamIE):
IE_DESC = 'VGTV, BTTV, FTV, Aftenposten and Aftonbladet'
+ _BYPASS_GEO = False
_HOST_TO_APPNAME = {
'vgtv.no': 'vgtv',
@@
-217,7
+218,7
@@
class VGTVIE(XstreamIE):
properties = try_get(
data, lambda x: x['streamConfiguration']['properties'], list)
if properties and 'geoblocked' in properties:
- raise self.raise_geo_restricted()
+ raise self.raise_geo_restricted(
countries=['NO']
)
self._sort_formats(info['formats'])