aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/stanfordoc.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-10-09 23:50:53 +0700
committerSergey M․ <dstftw@gmail.com>2017-10-09 23:50:53 +0700
commit197224b7a4e37a6581bf1a0da18d0f67ea61a476 (patch)
treec2cd8cac66667b65610ca7dc279d0fe98c87ae50 /youtube_dl/extractor/stanfordoc.py
parent89923316210f8e17bb1a085278940e1c56fcff48 (diff)
Fix some regexes
Diffstat (limited to 'youtube_dl/extractor/stanfordoc.py')
-rw-r--r--youtube_dl/extractor/stanfordoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/stanfordoc.py b/youtube_dl/extractor/stanfordoc.py
index cce65fb10..ae3dd1380 100644
--- 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)
- links = orderedSet(re.findall(r'<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]
@@ -84,7 +84,7 @@ class StanfordOpenClassroomIE(InfoExtractor):
rootpage = self._download_webpage(rootURL, info['id'],
errnote='Unable to download course info page')
- links = orderedSet(re.findall(r'<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]