Browse Source

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

master-ytdl-org
Sergey M․ 8 years ago
committed by Sergey M
parent
commit
04d906eae3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/svt.py

+ 2
- 1
youtube_dl/extractor/svt.py 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 = {}


Loading…
Cancel
Save