1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-26 17:58:24 +08:00

[Udemy] Fix issue 8753

This commit is contained in:
Quan Hua 2016-03-15 22:45:31 +07:00
parent cf6cd07396
commit 41f3c8c54c

View File

@ -142,9 +142,12 @@ class UdemyIE(InfoExtractor):
lecture_id = self._match_id(url)
webpage = self._download_webpage(url, lecture_id)
course_id = self._search_regex(
try:
course_id = self._search_regex(
r'data-course-id=["\'](\d+)', webpage, 'course id')
except ExtractorError as e:
course_id = self._search_regex(
r'"id": (\d+)', webpage, 'course id')
try:
lecture = self._download_lecture(course_id, lecture_id)