[udemy] Improve course id v4 regex
authorSergey M․ <dstftw@gmail.com>
Wed, 16 Mar 2016 15:46:09 +0000 (21:46 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 16 Mar 2016 15:46:09 +0000 (21:46 +0600)
youtube_dl/extractor/udemy.py

index 0fd2a0a0a500229da38ad0dc23c29831b5ee3ddd..74cc36ece2cb66da6c039af384763bdd95222d14 100644 (file)
@@ -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'&quot;id&quot;(\d+)'),
+            (r'data-course-id=["\'](\d+)', r'&quot;id&quot;\s*:\s*(\d+)'),
             webpage, 'course id')
 
         try: