aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/svt.py
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2017-07-29 15:30:53 +0700
committerSergey M․ <[email protected]>2017-07-29 15:30:53 +0700
commitc04017519da74a375d6c1c95733d921e96d8ee82 (patch)
tree7a9fc4713d302992b52848fa91417ce2644b31d9 /youtube_dl/extractor/svt.py
parent2a7a82321135bc59364c91caddde4211f378785b (diff)
downloadyoutube-dl-c04017519da74a375d6c1c95733d921e96d8ee82.tar.gz
youtube-dl-c04017519da74a375d6c1c95733d921e96d8ee82.zip
[svtplay] Use geo verification proxy for API request
Diffstat (limited to 'youtube_dl/extractor/svt.py')
-rw-r--r--youtube_dl/extractor/svt.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/svt.py b/youtube_dl/extractor/svt.py
index 38a505f9c..48bc4529e 100644
--- a/youtube_dl/extractor/svt.py
+++ b/youtube_dl/extractor/svt.py
@@ -181,7 +181,8 @@ class SVTPlayIE(SVTBaseIE):
if video_id:
data = self._download_json(
- 'https://api.svt.se/videoplayer-api/video/%s' % video_id, video_id)
+ 'https://api.svt.se/videoplayer-api/video/%s' % video_id,
+ video_id, headers=self.geo_verification_headers())
info_dict = self._extract_video(data, video_id)
if not info_dict.get('title'):
info_dict['title'] = re.sub(