projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cfc0e7c
)
[lynda] Switch to https (closes #10916)
author
Sergey M․
<dstftw@gmail.com>
Sat, 15 Oct 2016 16:56:09 +0000
(23:56 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 15 Oct 2016 16:56:09 +0000
(23:56 +0700)
youtube_dl/extractor/lynda.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/lynda.py
b/youtube_dl/extractor/lynda.py
index 299873ecc3171a431c098e50d6c6a2ecaa40e2b3..1f075b6de932b651b5bc5f0fc01c46c067aa41c4 100644
(file)
--- a/
youtube_dl/extractor/lynda.py
+++ b/
youtube_dl/extractor/lynda.py
@@
-99,7
+99,7
@@
class LyndaIE(LyndaBaseIE):
_TIMECODE_REGEX = r'\[(?P<timecode>\d+:\d+:\d+[\.,]\d+)\]'
_TESTS = [{
_TIMECODE_REGEX = r'\[(?P<timecode>\d+:\d+:\d+[\.,]\d+)\]'
_TESTS = [{
- 'url': 'http://www.lynda.com/Bootstrap-tutorials/Using-exercise-files/110885/114408-4.html',
+ 'url': 'http
s
://www.lynda.com/Bootstrap-tutorials/Using-exercise-files/110885/114408-4.html',
# md5 is unstable
'info_dict': {
'id': '114408',
# md5 is unstable
'info_dict': {
'id': '114408',
@@
-116,7
+116,7
@@
class LyndaIE(LyndaBaseIE):
video_id = self._match_id(url)
video = self._download_json(
video_id = self._match_id(url)
video = self._download_json(
- 'http://www.lynda.com/ajax/player?videoId=%s&type=video' % video_id,
+ 'http
s
://www.lynda.com/ajax/player?videoId=%s&type=video' % video_id,
video_id, 'Downloading video JSON')
if 'Status' in video:
video_id, 'Downloading video JSON')
if 'Status' in video:
@@
-187,7
+187,7
@@
class LyndaIE(LyndaBaseIE):
return srt
def _get_subtitles(self, video_id):
return srt
def _get_subtitles(self, video_id):
- url = 'http://www.lynda.com/ajax/player?videoId=%s&type=transcript' % video_id
+ url = 'http
s
://www.lynda.com/ajax/player?videoId=%s&type=transcript' % video_id
subs = self._download_json(url, None, False)
if subs:
return {'en': [{'ext': 'srt', 'data': self._fix_subtitles(subs)}]}
subs = self._download_json(url, None, False)
if subs:
return {'en': [{'ext': 'srt', 'data': self._fix_subtitles(subs)}]}
@@
-209,7
+209,7
@@
class LyndaCourseIE(LyndaBaseIE):
course_id = mobj.group('courseid')
course = self._download_json(
course_id = mobj.group('courseid')
course = self._download_json(
- 'http://www.lynda.com/ajax/player?courseId=%s&type=course' % course_id,
+ 'http
s
://www.lynda.com/ajax/player?courseId=%s&type=course' % course_id,
course_id, 'Downloading course JSON')
if course.get('Status') == 'NotFound':
course_id, 'Downloading course JSON')
if course.get('Status') == 'NotFound':
@@
-231,7
+231,7
@@
class LyndaCourseIE(LyndaBaseIE):
if video_id:
entries.append({
'_type': 'url_transparent',
if video_id:
entries.append({
'_type': 'url_transparent',
- 'url': 'http://www.lynda.com/%s/%s-4.html' % (course_path, video_id),
+ 'url': 'http
s
://www.lynda.com/%s/%s-4.html' % (course_path, video_id),
'ie_key': LyndaIE.ie_key(),
'chapter': chapter.get('Title'),
'chapter_number': int_or_none(chapter.get('ChapterIndex')),
'ie_key': LyndaIE.ie_key(),
'chapter': chapter.get('Title'),
'chapter_number': int_or_none(chapter.get('ChapterIndex')),