From: Sergey M․ Date: Sat, 4 Feb 2017 11:52:33 +0000 (+0700) Subject: [svt] Improve geo restriction detection and use geo bypass mechanism X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=04d906eae3071e37049cfcd2a02e9079b72a265c;p=youtube-dl [svt] Improve geo restriction detection and use geo bypass mechanism --- diff --git a/youtube_dl/extractor/svt.py b/youtube_dl/extractor/svt.py index 10cf80885..f2a2200bf 100644 --- a/youtube_dl/extractor/svt.py +++ b/youtube_dl/extractor/svt.py @@ -38,7 +38,8 @@ class SVTBaseIE(InfoExtractor): 'url': vurl, }) if not formats and video_info.get('rights', {}).get('geoBlockedSweden'): - self.raise_geo_restricted('This video is only available in Sweden') + self.raise_geo_restricted( + 'This video is only available in Sweden', countries=['SE']) self._sort_formats(formats) subtitles = {}