]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/jwplatform.py
[extractors] Use new framework for existing embeds (#4307)
[yt-dlp.git] / yt_dlp / extractor / jwplatform.py
index 2cb7ca3d7a6013b98027be6b345e19da566fe30a..d6b8420a87f4fd3a3e359c75c89ee03f8ce21f04 100644 (file)
@@ -22,13 +22,8 @@ class JWPlatformIE(InfoExtractor):
         'only_matching': True,
     }]
 
-    @staticmethod
-    def _extract_url(webpage):
-        urls = JWPlatformIE._extract_urls(webpage)
-        return urls[0] if urls else None
-
-    @staticmethod
-    def _extract_urls(webpage):
+    @classmethod
+    def _extract_embed_urls(cls, url, webpage):
         for tag, key in ((r'(?:script|iframe)', 'src'), ('input', 'value')):
             # <input value=URL> is used by hyland.com
             # if we find <iframe>, dont look for <input>