diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-03-16 21:46:09 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-03-16 21:46:09 +0600 |
commit | 70cab344c48598904fde657620156be62b70ee0d (patch) | |
tree | fd8641be167fce8cb9a4f8024b2196c438e260a5 | |
parent | a7ba57dc176efaa50b5121a1f63963f4fc0111e7 (diff) |
[udemy] Improve course id v4 regex
-rw-r--r-- | youtube_dl/extractor/udemy.py | 2 |
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'"id": (\d+)'), + (r'data-course-id=["\'](\d+)', r'"id"\s*:\s*(\d+)'), webpage, 'course id') try: |