projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a7a823
)
[svtplay] Use geo verification proxy for API request
author
Sergey M․
<dstftw@gmail.com>
Sat, 29 Jul 2017 08:30:53 +0000
(15:30 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 29 Jul 2017 08:30:53 +0000
(15:30 +0700)
youtube_dl/extractor/svt.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/svt.py
b/youtube_dl/extractor/svt.py
index 38a505f9ccc9818e8dae8ed95ec8ec32457d6384..48bc4529e6ae8a265a672c066ac59b388ea3a5d5 100644
(file)
--- a/
youtube_dl/extractor/svt.py
+++ b/
youtube_dl/extractor/svt.py
@@
-181,7
+181,8
@@
class SVTPlayIE(SVTBaseIE):
if video_id:
data = self._download_json(
- 'https://api.svt.se/videoplayer-api/video/%s' % video_id, video_id)
+ 'https://api.svt.se/videoplayer-api/video/%s' % video_id,
+ video_id, headers=self.geo_verification_headers())
info_dict = self._extract_video(data, video_id)
if not info_dict.get('title'):
info_dict['title'] = re.sub(