diff options
author | Quan Hua <quanhua92@gmail.com> | 2016-03-16 10:15:39 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-03-16 21:45:01 +0600 |
commit | a7ba57dc176efaa50b5121a1f63963f4fc0111e7 (patch) | |
tree | af2f66e4aa66ea1164f81d7240fae452b591d9a8 /youtube_dl/extractor/udemy.py | |
parent | 83548824c29ccdf53a4659260aa3898939833882 (diff) |
[udemy] Update course id regex to cover v4 layout (Closes #8753, closes #8868, closes #8870)
Diffstat (limited to 'youtube_dl/extractor/udemy.py')
-rw-r--r-- | youtube_dl/extractor/udemy.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py index f5b5e7fd6..0fd2a0a0a 100644 --- a/youtube_dl/extractor/udemy.py +++ b/youtube_dl/extractor/udemy.py @@ -144,7 +144,8 @@ class UdemyIE(InfoExtractor): webpage = self._download_webpage(url, lecture_id) course_id = self._search_regex( - r'data-course-id=["\'](\d+)', webpage, 'course id') + (r'data-course-id=["\'](\d+)', r'"id": (\d+)'), + webpage, 'course id') try: lecture = self._download_lecture(course_id, lecture_id) |