[udemy] Improve course id v4 regex

pull/8/head
Sergey M․ 2016-03-16 21:46:09 +06:00
rodzic a7ba57dc17
commit 70cab344c4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -144,7 +144,7 @@ class UdemyIE(InfoExtractor):
webpage = self._download_webpage(url, lecture_id)
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')
try: