diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-02-04 18:52:33 +0700 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2017-02-19 05:10:08 +0800 |
commit | 04d906eae3071e37049cfcd2a02e9079b72a265c (patch) | |
tree | 73084f560f0881d2bf835b20b7514257aeb296de | |
parent | 8ab8066cf08352ad336c3ff594d0ac27f6c809c8 (diff) |
[svt] Improve geo restriction detection and use geo bypass mechanism
-rw-r--r-- | youtube_dl/extractor/svt.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 = {} |