projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c67b338
)
[teachable:course] Improve extraction (closes #24507, closes #27286)
author
Sergey M․
<dstftw@gmail.com>
Fri, 4 Dec 2020 20:24:56 +0000
(
03:24
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 4 Dec 2020 20:24:56 +0000
(
03:24
+0700)
youtube_dl/extractor/teachable.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/teachable.py
b/youtube_dl/extractor/teachable.py
index a75369dbe8a3582595ae339d58887eaefd220536..6f264bddc4590dc60cf16e200b0369ee1bfc1d65 100644
(file)
--- a/
youtube_dl/extractor/teachable.py
+++ b/
youtube_dl/extractor/teachable.py
@@
-269,7
+269,7
@@
class TeachableCourseIE(TeachableBaseIE):
r'(?s)(?P<li><li[^>]+class=(["\'])(?:(?!\2).)*?section-item[^>]+>.+?</li>)',
webpage):
li = mobj.group('li')
- if 'fa-youtube-play' not in li:
+ if 'fa-youtube-play' not in li
and not re.search(r'\d{1,2}:\d{2}', li)
:
continue
lecture_url = self._search_regex(
r'<a[^>]+href=(["\'])(?P<url>(?:(?!\1).)+)\1', li,