X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fudemy.py;h=74cc36ece2cb66da6c039af384763bdd95222d14;hb=c6ca11f1b31a292413cab03012654fd0021814a8;hp=f5b5e7fd6775b4194ca18265f4c78f639a5f092a;hpb=78be2eca7cb2806c3a51547da14968336febb57c;p=youtube-dl.git diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py index f5b5e7fd6..74cc36ece 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"\s*:\s*(\d+)'), + webpage, 'course id') try: lecture = self._download_lecture(course_id, lecture_id)