mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-27 13:52:50 +08:00
Change to tuble search_regex to fix #8753
This commit is contained in:
parent
41f3c8c54c
commit
a28d4654f3
@ -142,12 +142,10 @@ class UdemyIE(InfoExtractor):
|
|||||||
lecture_id = self._match_id(url)
|
lecture_id = self._match_id(url)
|
||||||
|
|
||||||
webpage = self._download_webpage(url, lecture_id)
|
webpage = self._download_webpage(url, lecture_id)
|
||||||
try:
|
|
||||||
course_id = self._search_regex(
|
course_id = self._search_regex(
|
||||||
r'data-course-id=["\'](\d+)', webpage, 'course id')
|
(r'data-course-id=["\'](\d+)', r'"id": (\d+)'),
|
||||||
except ExtractorError as e:
|
webpage, 'course id')
|
||||||
course_id = self._search_regex(
|
|
||||||
r'"id": (\d+)', webpage, 'course id')
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
lecture = self._download_lecture(course_id, lecture_id)
|
lecture = self._download_lecture(course_id, lecture_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user