Browse Source

[udemy] Improve course id v4 regex

totalwebcasting
Sergey M․ 9 years ago
parent
commit
70cab344c4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/udemy.py

+ 1
- 1
youtube_dl/extractor/udemy.py View File

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


Loading…
Cancel
Save