projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
582797d
)
[rutube] Use geo verification headers (closes #17897)
author
Sergey M․
<dstftw@gmail.com>
Tue, 16 Oct 2018 16:19:44 +0000
(23:19 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 16 Oct 2018 16:19:44 +0000
(23:19 +0700)
youtube_dl/extractor/rutube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/rutube.py
b/youtube_dl/extractor/rutube.py
index 261bcbb83ece85610a709701155ab4e244400f10..10ac8ed1f22ad943dc210430d0363d9a4aa0b483 100644
(file)
--- 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():