From 50f566076fe4167f0fd6028b0cde7046c5554e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sat, 5 Apr 2014 15:49:45 +0700 Subject: [PATCH] [generic] Add support for videoweed embeds --- youtube_dl/extractor/generic.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 238cc7125..1c45ebb00 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -523,6 +523,12 @@ class GenericIE(InfoExtractor): if mobj is not None: return self.url_result(mobj.group('url'), 'NowVideo') + # Look for embedded VideoWeed player + mobj = re.search( + r']+?src=(["\'])(?Phttp://(?:(?:embed|www)\.)?videoweed\.(?:es|com)/embed\.php.+?)\1', webpage) + if mobj is not None: + return self.url_result(mobj.group('url'), 'VideoWeed') + # Look for embedded Facebook player mobj = re.search( r']+?src=(["\'])(?Phttps://www\.facebook\.com/video/embed.+?)\1', webpage)