projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7ba57d
)
[udemy] Improve course id v4 regex
author
Sergey M․
<dstftw@gmail.com>
Wed, 16 Mar 2016 15:46:09 +0000
(21:46 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 16 Mar 2016 15:46:09 +0000
(21:46 +0600)
youtube_dl/extractor/udemy.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/udemy.py
b/youtube_dl/extractor/udemy.py
index 0fd2a0a0a500229da38ad0dc23c29831b5ee3ddd..74cc36ece2cb66da6c039af384763bdd95222d14 100644
(file)
--- a/
youtube_dl/extractor/udemy.py
+++ b/
youtube_dl/extractor/udemy.py
@@
-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: