[teachable:course] Improve extraction (closes #24507, closes #27286)
authorSergey M․ <dstftw@gmail.com>
Fri, 4 Dec 2020 20:24:56 +0000 (03:24 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 4 Dec 2020 20:24:56 +0000 (03:24 +0700)
youtube_dl/extractor/teachable.py

index a75369dbe8a3582595ae339d58887eaefd220536..6f264bddc4590dc60cf16e200b0369ee1bfc1d65 100644 (file)
@@ -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,