]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/common.py
[extractors] Use new framework for existing embeds (#4307)
[yt-dlp.git] / yt_dlp / extractor / common.py
index c91260cb0a6869dce3cd3c084b2e08103172050d..a6933e738b1c41316f76694d62e87853ac619ad3 100644 (file)
@@ -3882,6 +3882,11 @@ def _extract_embed_urls(cls, url, webpage):
     class StopExtraction(Exception):
         pass
 
+    @classmethod
+    def _extract_url(cls, webpage):  # TODO: Remove
+        """Only for compatibility with some older extractors"""
+        return next(iter(cls._extract_embed_urls(None, webpage) or []), None)
+
 
 class SearchInfoExtractor(InfoExtractor):
     """