commit c04017519da74a375d6c1c95733d921e96d8ee82 parent 2a7a82321135bc59364c91caddde4211f378785b Author: Sergey M․ <dstftw@gmail.com> Date: Sat, 29 Jul 2017 15:30:53 +0700 [svtplay] Use geo verification proxy for API request Diffstat:
M | youtube_dl/extractor/svt.py | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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(