1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-09-29 22:08:45 +02:00

[udemy] Improve course id v4 regex

This commit is contained in:
Sergey M․ 2016-03-16 21:46:09 +06:00
parent a7ba57dc17
commit 70cab344c4

View File

@ -144,7 +144,7 @@ class UdemyIE(InfoExtractor):
webpage = self._download_webpage(url, lecture_id) webpage = self._download_webpage(url, lecture_id)
course_id = self._search_regex( course_id = self._search_regex(
(r'data-course-id=["\'](\d+)', r'"id": (\d+)'), (r'data-course-id=["\'](\d+)', r'"id"\s*:\s*(\d+)'),
webpage, 'course id') webpage, 'course id')
try: try: