]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[udemy] Update course id regex to cover v4 layout (Closes #8753, closes #8868, closes...
authorQuan Hua <quanhua92@gmail.com>
Wed, 16 Mar 2016 03:15:39 +0000 (10:15 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 16 Mar 2016 15:45:01 +0000 (21:45 +0600)
youtube_dl/extractor/udemy.py

index f5b5e7fd6775b4194ca18265f4c78f639a5f092a..0fd2a0a0a500229da38ad0dc23c29831b5ee3ddd 100644 (file)
@@ -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'&quot;id&quot;: (\d+)'),
+            webpage, 'course id')
 
         try:
             lecture = self._download_lecture(course_id, lecture_id)