mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-14 09:16:32 +00:00
[svt] Improve geo restriction detection and use geo bypass mechanism
This commit is contained in:
parent
8ab8066cf0
commit
04d906eae3
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user