commit: 58f7ada235801aae3fdcb959df04a4bfdb790415
parent c67b33888f4b8ea21189a966f087f795c6ea52bc
Author: Sergey M․ <dstftw@gmail.com>
Date: Sat, 5 Dec 2020 03:24:56 +0700
[teachable:course] Improve extraction (closes #24507, closes #27286)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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,