projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8354882
)
[udemy] Update course id regex to cover v4 layout (Closes #8753, closes #8868, closes...
author
Quan Hua
<quanhua92@gmail.com>
Wed, 16 Mar 2016 03:15:39 +0000
(10:15 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 16 Mar 2016 15:45:01 +0000
(21:45 +0600)
youtube_dl/extractor/udemy.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/udemy.py
b/youtube_dl/extractor/udemy.py
index f5b5e7fd6775b4194ca18265f4c78f639a5f092a..0fd2a0a0a500229da38ad0dc23c29831b5ee3ddd 100644
(file)
--- a/
youtube_dl/extractor/udemy.py
+++ b/
youtube_dl/extractor/udemy.py
@@
-144,7
+144,8
@@
class UdemyIE(InfoExtractor):
webpage = self._download_webpage(url, lecture_id)
course_id = self._search_regex(
- r'data-course-id=["\'](\d+)', webpage, 'course id')
+ (r'data-course-id=["\'](\d+)', r'"id": (\d+)'),
+ webpage, 'course id')
try:
lecture = self._download_lecture(course_id, lecture_id)