projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
release 2019.06.21
[youtube-dl]
/
youtube_dl
/
extractor
/
stanfordoc.py
diff --git
a/youtube_dl/extractor/stanfordoc.py
b/youtube_dl/extractor/stanfordoc.py
index 5feb4ff83f9c4d2def9196666bde4fcc2a3a9101..ae3dd13807d0f9f46939f6dfab066a75eddd1ed1 100644
(file)
--- a/
youtube_dl/extractor/stanfordoc.py
+++ b/
youtube_dl/extractor/stanfordoc.py
@@
-66,7
+66,7
@@
class StanfordOpenClassroomIE(InfoExtractor):
r'(?s)<description>([^<]+)</description>',
coursepage, 'description', fatal=False)
r'(?s)<description>([^<]+)</description>',
coursepage, 'description', fatal=False)
- links = orderedSet(re.findall(
'<a href="(VideoPage
.php\?[^"]+)">', coursepage))
+ links = orderedSet(re.findall(
r'<a href="(VideoPage\
.php\?[^"]+)">', coursepage))
info['entries'] = [self.url_result(
'http://openclassroom.stanford.edu/MainFolder/%s' % unescapeHTML(l)
) for l in links]
info['entries'] = [self.url_result(
'http://openclassroom.stanford.edu/MainFolder/%s' % unescapeHTML(l)
) for l in links]
@@
-82,9
+82,9
@@
class StanfordOpenClassroomIE(InfoExtractor):
rootURL = 'http://openclassroom.stanford.edu/MainFolder/HomePage.php'
rootpage = self._download_webpage(rootURL, info['id'],
rootURL = 'http://openclassroom.stanford.edu/MainFolder/HomePage.php'
rootpage = self._download_webpage(rootURL, info['id'],
- errnote='Unable to download course info page')
+
errnote='Unable to download course info page')
- links = orderedSet(re.findall(
'<a href="(CoursePage
.php\?[^"]+)">', rootpage))
+ links = orderedSet(re.findall(
r'<a href="(CoursePage\
.php\?[^"]+)">', rootpage))
info['entries'] = [self.url_result(
'http://openclassroom.stanford.edu/MainFolder/%s' % unescapeHTML(l)
) for l in links]
info['entries'] = [self.url_result(
'http://openclassroom.stanford.edu/MainFolder/%s' % unescapeHTML(l)
) for l in links]