1
0
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-17 15:06:39 +00:00

[svtplay] Use geo verification proxy for API request

This commit is contained in:
Sergey M․ 2017-07-29 15:30:53 +07:00
parent 2a7a823211
commit c04017519d
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View 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(