[generic] Add support for multiple vimeo embeds (Closes #10862)

This commit is contained in:
Sergey M․ 2016-10-06 23:22:52 +07:00
parent 33898fb19c
commit 09b9c45e24
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D
3 changed files with 24 additions and 20 deletions

View file

@ -1754,9 +1754,9 @@ class GenericIE(InfoExtractor):
if matches:
return _playlist_from_matches(matches, ie='RtlNl')
vimeo_url = VimeoIE._extract_vimeo_url(url, webpage)
if vimeo_url is not None:
return self.url_result(vimeo_url)
vimeo_urls = VimeoIE._extract_urls(url, webpage)
if vimeo_urls:
return _playlist_from_matches(vimeo_urls, ie=VimeoIE.ie_key())
vid_me_embed_url = self._search_regex(
r'src=[\'"](https?://vid\.me/[^\'"]+)[\'"]',