1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-27 01:56:52 +00:00

[generic] Add support for videoweed embeds

This commit is contained in:
Sergey M․ 2014-04-05 15:49:45 +07:00
parent 92810ff497
commit 50f566076f

View file

@ -523,6 +523,12 @@ class GenericIE(InfoExtractor):
if mobj is not None: if mobj is not None:
return self.url_result(mobj.group('url'), 'NowVideo') return self.url_result(mobj.group('url'), 'NowVideo')
# Look for embedded VideoWeed player
mobj = re.search(
r'<iframe[^>]+?src=(["\'])(?P<url>http://(?:(?: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 # Look for embedded Facebook player
mobj = re.search( mobj = re.search(
r'<iframe[^>]+?src=(["\'])(?P<url>https://www\.facebook\.com/video/embed.+?)\1', webpage) r'<iframe[^>]+?src=(["\'])(?P<url>https://www\.facebook\.com/video/embed.+?)\1', webpage)