aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-02-04 18:55:31 +0700
committerSergey M <dstftw@gmail.com>2017-02-19 05:10:08 +0800
commit80b59020e02e9c61f74f8f8f8891f9745667edb7 (patch)
treed33ec2e79dee3fd31104a768589963a32f5431f1 /youtube_dl
parent71631862f4de5a10223642ebdbd5e10db374d270 (diff)
[vgtv] Improve geo restriction detection
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/vgtv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vgtv.py b/youtube_dl/extractor/vgtv.py
index 8a574bc26..1709fd6bb 100644
--- 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'])