1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-09 11:52:51 +08:00

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

This commit is contained in:
Sergey M․ 2018-10-16 23:19:44 +07:00 committed by Ni Ndogo
parent 3f84de8a97
commit 41a3140e6c

View File

@ -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():