From: Sergey M․ Date: Sat, 29 Jul 2017 08:30:53 +0000 (+0700) Subject: [svtplay] Use geo verification proxy for API request X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=c04017519da74a375d6c1c95733d921e96d8ee82;p=youtube-dl [svtplay] Use geo verification proxy for API request --- 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(