projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[raywenderlich] PEP 8
[youtube-dl]
/
youtube_dl
/
extractor
/
svt.py
diff --git
a/youtube_dl/extractor/svt.py
b/youtube_dl/extractor/svt.py
index 9e2c9fcc69946b1933d3aa57c18a1a3b9a4c3dd4..48bc4529e6ae8a265a672c066ac59b388ea3a5d5 100644
(file)
--- a/
youtube_dl/extractor/svt.py
+++ b/
youtube_dl/extractor/svt.py
@@
-14,6
+14,7
@@
from ..utils import (
class SVTBaseIE(InfoExtractor):
_GEO_COUNTRIES = ['SE']
class SVTBaseIE(InfoExtractor):
_GEO_COUNTRIES = ['SE']
+
def _extract_video(self, video_info, video_id):
formats = []
for vr in video_info['videoReferences']:
def _extract_video(self, video_info, video_id):
formats = []
for vr in video_info['videoReferences']:
@@
-180,7
+181,8
@@
class SVTPlayIE(SVTBaseIE):
if video_id:
data = self._download_json(
if video_id:
data = self._download_json(
- 'http://www.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(
info_dict = self._extract_video(data, video_id)
if not info_dict.get('title'):
info_dict['title'] = re.sub(