X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fudemy.py;h=74cc36ece2cb66da6c039af384763bdd95222d14;hb=70cab344c48598904fde657620156be62b70ee0d;hp=0fd2a0a0a500229da38ad0dc23c29831b5ee3ddd;hpb=a7ba57dc176efaa50b5121a1f63963f4fc0111e7;p=youtube-dl 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: