Merge pull request #13669 from bmwiedemann/master
[youtube-dl] / youtube_dl / extractor / svt.py
index 9e2c9fcc69946b1933d3aa57c18a1a3b9a4c3dd4..48bc4529e6ae8a265a672c066ac59b388ea3a5d5 100644 (file)
@@ -14,6 +14,7 @@ from ..utils import (
 
 class SVTBaseIE(InfoExtractor):
     _GEO_COUNTRIES = ['SE']
+
     def _extract_video(self, video_info, video_id):
         formats = []
         for vr in video_info['videoReferences']:
@@ -180,7 +181,8 @@ class SVTPlayIE(SVTBaseIE):
 
         if video_id:
             data = self._download_json(
-                'http://www.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(