From: Sergey M․ Date: Wed, 16 Mar 2016 15:46:09 +0000 (+0600) Subject: [udemy] Improve course id v4 regex X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=70cab344c48598904fde657620156be62b70ee0d;p=youtube-dl [udemy] Improve course id v4 regex --- 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: