[vgtv] Improve geo restriction detection
authorSergey M․ <dstftw@gmail.com>
Sat, 4 Feb 2017 11:55:31 +0000 (18:55 +0700)
committerSergey M <dstftw@gmail.com>
Sat, 18 Feb 2017 21:10:08 +0000 (05:10 +0800)
youtube_dl/extractor/vgtv.py

index 8a574bc269789e14f3dcadd6167c5caaa46e49e3..1709fd6bbe779a7a7b4315c1016a67d536aa14b3 100644 (file)
@@ -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'])