1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[svt] Improve geo restriction detection and use geo bypass mechanism

This commit is contained in:
Sergey M․ 2017-02-04 18:52:33 +07:00 committed by Sergey M
parent 8ab8066cf0
commit 04d906eae3

View file

@ -38,7 +38,8 @@ class SVTBaseIE(InfoExtractor):
'url': vurl, 'url': vurl,
}) })
if not formats and video_info.get('rights', {}).get('geoBlockedSweden'): 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) self._sort_formats(formats)
subtitles = {} subtitles = {}