aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-03-16 21:46:09 +0600
committerSergey M․ <dstftw@gmail.com>2016-03-16 21:46:09 +0600
commit70cab344c48598904fde657620156be62b70ee0d (patch)
treefd8641be167fce8cb9a4f8024b2196c438e260a5 /youtube_dl
parenta7ba57dc176efaa50b5121a1f63963f4fc0111e7 (diff)
[udemy] Improve course id v4 regex
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/udemy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py
index 0fd2a0a0a..74cc36ece 100644
--- a/youtube_dl/extractor/udemy.py
+++ b/youtube_dl/extractor/udemy.py
@@ -144,7 +144,7 @@ class UdemyIE(InfoExtractor):
webpage = self._download_webpage(url, lecture_id)
course_id = self._search_regex(
- (r'data-course-id=["\'](\d+)', r'&quot;id&quot;: (\d+)'),
+ (r'data-course-id=["\'](\d+)', r'&quot;id&quot;\s*:\s*(\d+)'),
webpage, 'course id')
try: