[generic] Look for teachable embeds before wistia
authorSergey M․ <dstftw@gmail.com>
Mon, 23 Mar 2020 19:46:37 +0000 (02:46 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 23 Mar 2020 19:57:38 +0000 (02:57 +0700)
youtube_dl/extractor/generic.py

index d1ec56be97d81de050793f240a8b3fdbddade1f1..a495ee15aaedc2a64fad86bde03e0be4cab64e85 100644 (file)
@@ -2536,6 +2536,11 @@ class GenericIE(InfoExtractor):
             return self.playlist_from_matches(
                 dailymail_urls, video_id, video_title, ie=DailyMailIE.ie_key())
 
+        # Look for Teachable embeds, must be before Wistia
+        teachable_url = TeachableIE._extract_url(webpage, url)
+        if teachable_url:
+            return self.url_result(teachable_url)
+
         # Look for embedded Wistia player
         wistia_urls = WistiaIE._extract_urls(webpage)
         if wistia_urls:
@@ -3141,10 +3146,6 @@ class GenericIE(InfoExtractor):
             return self.playlist_from_matches(
                 peertube_urls, video_id, video_title, ie=PeerTubeIE.ie_key())
 
-        teachable_url = TeachableIE._extract_url(webpage, url)
-        if teachable_url:
-            return self.url_result(teachable_url)
-
         indavideo_urls = IndavideoEmbedIE._extract_urls(webpage)
         if indavideo_urls:
             return self.playlist_from_matches(