[vgtv] Improve geo restriction detection

pull/8/head
Sergey M․ 2017-02-04 18:55:31 +07:00 zatwierdzone przez Sergey M
rodzic 71631862f4
commit 80b59020e0
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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'])