Browse Source

[generic] Add support for playwire embeds (Closes #5430)

totalwebcasting
Sergey M․ 10 years ago
parent
commit
2dcc114f84
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      youtube_dl/extractor/generic.py

+ 6
- 0
youtube_dl/extractor/generic.py View File

@ -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)


Loading…
Cancel
Save