From: Sergey M․ Date: Fri, 4 Dec 2020 20:24:56 +0000 (+0700) Subject: [teachable:course] Improve extraction (closes #24507, closes #27286) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=58f7ada235801aae3fdcb959df04a4bfdb790415;p=youtube-dl [teachable:course] Improve extraction (closes #24507, closes #27286) --- 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
  • ]+class=(["\'])(?:(?!\2).)*?section-item[^>]+>.+?
  • )', 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']+href=(["\'])(?P(?:(?!\1).)+)\1', li,