diff options
Diffstat (limited to 'youtube_dlc/extractor/teachable.py')
-rw-r--r-- | youtube_dlc/extractor/teachable.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dlc/extractor/teachable.py b/youtube_dlc/extractor/teachable.py index a75369dbe..2394f86d4 100644 --- a/youtube_dlc/extractor/teachable.py +++ b/youtube_dlc/extractor/teachable.py @@ -140,7 +140,7 @@ class TeachableIE(TeachableBaseIE): @staticmethod def _is_teachable(webpage): return 'teachableTracker.linker:autoLink' in webpage and re.search( - r'<link[^>]+href=["\']https?://process\.fs\.teachablecdn\.com', + r'<link[^>]+href=["\']https?://(?:process\.fs|assets)\.teachablecdn\.com', webpage) @staticmethod @@ -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, |