1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-23 08:17:00 +00:00

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

This commit is contained in:
Quan Hua 2016-03-16 10:15:39 +07:00 committed by Sergey M․
parent 83548824c2
commit a7ba57dc17

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