From: Remita Amine Date: Fri, 19 Apr 2019 19:44:31 +0000 (+0100) Subject: [udemy] add another course id extraction pattern(closes #20491) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=5de538787df3f13476489b4a7dfae442c046fab7;p=youtube-dl [udemy] add another course id extraction pattern(closes #20491) --- diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py index 66ea6fb15..2a4faecef 100644 --- a/youtube_dl/extractor/udemy.py +++ b/youtube_dl/extractor/udemy.py @@ -76,7 +76,10 @@ class UdemyIE(InfoExtractor): webpage, 'course', default='{}')), video_id, fatal=False) or {} course_id = course.get('id') or self._search_regex( - r'data-course-id=["\'](\d+)', webpage, 'course id') + [ + r'data-course-id=["\'](\d+)', + r'"courseId"\s*:\s*(\d+)' + ], webpage, 'course id') return course_id, course.get('title') def _enroll_course(self, base_url, webpage, course_id):