mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[svtplay] Use geo verification proxy for API request
This commit is contained in:
parent
2a7a823211
commit
c04017519d
1 changed files with 2 additions and 1 deletions
|
@ -181,7 +181,8 @@ def _real_extract(self, url):
|
|||
|
||||
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(
|
||||
|
|
Loading…
Reference in a new issue