diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-04-15 22:10:08 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-04-15 22:10:08 +0600 |
commit | 2dcc114f84ebd6ea18b60a57070bcb81861d8f84 (patch) | |
tree | b5d30d2bfd83f139cc771ebf22ac171b382fec3b /youtube_dl/extractor/generic.py | |
parent | 0dfe9bc9d286ceb0fd35b0fc8857ba1a86cecdd3 (diff) |
[generic] Add support for playwire embeds (Closes #5430)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 6 |
1 files changed, 6 insertions, 0 deletions
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'<script[^>]+data-config=(["\'])(?P<url>(?: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'<meta[^>]+property="og:video"[^>]+content="https?://embed\.5min\.com/(?P<id>[0-9]+)/?', webpage) |