1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 06:47:14 +08:00

[Udemy] fix course id regex

This commit is contained in:
Anu 2019-04-03 16:45:30 +07:00
parent 25f35ad756
commit 3805e4aaa2

View File

@ -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(