From: Sergey M․ Date: Wed, 15 Apr 2015 16:10:08 +0000 (+0600) Subject: [generic] Add support for playwire embeds (Closes #5430) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=2dcc114f84ebd6ea18b60a57070bcb81861d8f84;p=youtube-dl [generic] Add support for playwire embeds (Closes #5430) --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index eaf9c769a..ab3538694 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1310,6 +1310,12 @@ class GenericIE(InfoExtractor): if mobj is not None: return self.url_result(mobj.group('url'), 'Pladform') + # Look for Playwire embeds + mobj = re.search( + r']+data-config=(["\'])(?P(?:https?:)?//config\.playwire\.com/.+?)\1', webpage) + if mobj is not None: + return self.url_result(mobj.group('url')) + # Look for 5min embeds mobj = re.search( r']+property="og:video"[^>]+content="https?://embed\.5min\.com/(?P[0-9]+)/?', webpage)