[svtplay] Use geo verification proxy for API request
[youtube-dl] / youtube_dl / extractor / svt.py
index 38a505f9ccc9818e8dae8ed95ec8ec32457d6384..48bc4529e6ae8a265a672c066ac59b388ea3a5d5 100644 (file)
@@ -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(