[teachable] Improve embed detection (closes #26923)
authorSergey M․ <dstftw@gmail.com>
Sun, 27 Dec 2020 15:57:50 +0000 (22:57 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 27 Dec 2020 15:57:50 +0000 (22:57 +0700)
youtube_dl/extractor/teachable.py

index 6f264bddc4590dc60cf16e200b0369ee1bfc1d65..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