Browse Source

[rutube] Use geo verification headers (closes #17897)

master
Sergey M․ 6 years ago
parent
commit
baeabf7742
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 1 deletions
  1. 3
      youtube_dl/extractor/rutube.py

3
youtube_dl/extractor/rutube.py

@ -103,7 +103,8 @@ class RutubeIE(RutubeBaseIE):
options = self._download_json(
'http://rutube.ru/api/play/options/%s/?format=json' % video_id,
video_id, 'Downloading options JSON')
video_id, 'Downloading options JSON',
headers=self.geo_verification_headers())
formats = []
for format_id, format_url in options['video_balancer'].items():

Loading…
Cancel
Save