]> jfr.im git - yt-dlp.git/blobdiff - youtube_dlc/extractor/teachable.py
Update to ytdl-2021.01.03
[yt-dlp.git] / youtube_dlc / extractor / teachable.py
index a75369dbe8a3582595ae339d58887eaefd220536..2394f86d4b8433dbd443c47ad8ad459b311f69cc 100644 (file)
@@ -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 @@ def _real_extract(self, url):
                 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,