mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 06:57:17 +08:00
[Udemy] fix course id regex
This commit is contained in:
parent
25f35ad756
commit
3805e4aaa2
@ -72,7 +72,7 @@ class UdemyIE(InfoExtractor):
|
||||
def _extract_course_info(self, webpage, video_id):
|
||||
course = self._parse_json(
|
||||
unescapeHTML(self._search_regex(
|
||||
r'data-module-args=["\'](.*)["\']',
|
||||
r'data-module-args=["\'](.*)["\']>',
|
||||
webpage, 'course', default='{}')),
|
||||
video_id, fatal=False) or {}
|
||||
course_id = course.get('courseId') or self._search_regex(
|
||||
|
Loading…
x
Reference in New Issue
Block a user