浏览代码

[teachable:course] Improve extraction (closes #24507, closes #27286)

Sergey M․ 4 年之前
父节点
当前提交
58f7ada235
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/teachable.py

+ 1 - 1
youtube_dl/extractor/teachable.py

@@ -269,7 +269,7 @@ class TeachableCourseIE(TeachableBaseIE):
                 r'(?s)(?P<li><li[^>]+class=(["\'])(?:(?!\2).)*?section-item[^>]+>.+?</li>)',
                 r'(?s)(?P<li><li[^>]+class=(["\'])(?:(?!\2).)*?section-item[^>]+>.+?</li>)',
                 webpage):
                 webpage):
             li = mobj.group('li')
             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
                 continue
             lecture_url = self._search_regex(
             lecture_url = self._search_regex(
                 r'<a[^>]+href=(["\'])(?P<url>(?:(?!\1).)+)\1', li,
                 r'<a[^>]+href=(["\'])(?P<url>(?:(?!\1).)+)\1', li,