]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/extractor/udemy.py
[extractor/generic] Properly extract format id from Content-Type
[youtube-dl.git] / 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'"id"(\d+)'),
+            (r'data-course-id=["\'](\d+)', r'"id"\s*:\s*(\d+)'),
             webpage, 'course id')
 
         try: