diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-10-16 23:19:44 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-10-16 23:19:44 +0700 |
commit | baeabf77428ad1a6bd5a910e7be07100fcb1eadd (patch) | |
tree | 903bb80ec74cd39f94f039deb166ba6833af43c8 /youtube_dl/extractor | |
parent | 582797d780b6f4857a5b8b6ca8c63915242c0ab9 (diff) |
[rutube] Use geo verification headers (closes #17897)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/rutube.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/rutube.py b/youtube_dl/extractor/rutube.py index 261bcbb83..10ac8ed1f 100644 --- a/youtube_dl/extractor/rutube.py +++ b/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(): |