diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-12-05 03:24:56 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-12-05 03:24:56 +0700 |
commit | 58f7ada235801aae3fdcb959df04a4bfdb790415 (patch) | |
tree | e1a0a2eaca2325e2e63e5401c238e60f878dd39a | |
parent | c67b33888f4b8ea21189a966f087f795c6ea52bc (diff) |
[teachable:course] Improve extraction (closes #24507, closes #27286)
-rw-r--r-- | youtube_dl/extractor/teachable.py | 2 |
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, |