aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-12-05 03:24:56 +0700
committerSergey M․ <dstftw@gmail.com>2020-12-05 03:24:56 +0700
commit58f7ada235801aae3fdcb959df04a4bfdb790415 (patch)
treee1a0a2eaca2325e2e63e5401c238e60f878dd39a
parentc67b33888f4b8ea21189a966f087f795c6ea52bc (diff)
[teachable:course] Improve extraction (closes #24507, closes #27286)
-rw-r--r--youtube_dl/extractor/teachable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/teachable.py b/youtube_dl/extractor/teachable.py
index a75369dbe..6f264bddc 100644
--- 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,