]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/voxmedia.py
[extractors] Use new framework for existing embeds (#4307)
[yt-dlp.git] / yt_dlp / extractor / voxmedia.py
index a7bf298aaf753cae853b4658572896fa79b4de00..96c782d8b3e45a10c425a42bed14070c3f1d99be 100644 (file)
@@ -71,6 +71,7 @@ def _real_extract(self, url):
 
 class VoxMediaIE(InfoExtractor):
     _VALID_URL = r'https?://(?:www\.)?(?:(?:theverge|vox|sbnation|eater|polygon|curbed|racked|funnyordie)\.com|recode\.net)/(?:[^/]+/)*(?P<id>[^/?]+)'
+    _EMBED_REGEX = [r'<iframe[^>]+?src="(?P<url>https?://(?:www\.)?funnyordie\.com/embed/[^"]+)"']
     _TESTS = [{
         # Volume embed, Youtube
         'url': 'http://www.theverge.com/2014/6/27/5849272/material-world-how-google-discovered-what-software-is-made-of',