Browse Source

[udemy] Update course id regex to cover v4 layout (Closes #8753, closes #8868, closes #8870)

master
Quan Hua 8 years ago
committed by Sergey M․
parent
commit
a7ba57dc17
1 changed files with 2 additions and 1 deletions
  1. 3
      youtube_dl/extractor/udemy.py

3
youtube_dl/extractor/udemy.py

@ -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'"id": (\d+)'),
webpage, 'course id')
try:
lecture = self._download_lecture(course_id, lecture_id)

Loading…
Cancel
Save