1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

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

This commit is contained in:
Sergey M․ 2018-10-16 23:19:44 +07:00
parent 582797d780
commit baeabf7742
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

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