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

This commit is contained in:
Sergey M․ 2020-12-05 03:24:56 +07:00
parent c67b33888f
commit 58f7ada235
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View 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,