Browse Source

[svtplay] Use geo verification proxy for API request

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
c04017519d
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/svt.py

+ 2
- 1
youtube_dl/extractor/svt.py View File

@ -181,7 +181,8 @@ class SVTPlayIE(SVTBaseIE):
if video_id: if video_id:
data = self._download_json( 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) info_dict = self._extract_video(data, video_id)
if not info_dict.get('title'): if not info_dict.get('title'):
info_dict['title'] = re.sub( info_dict['title'] = re.sub(


Loading…
Cancel
Save