This commit is contained in:
pihug12 2020-09-25 03:44:17 +02:00 committed by GitHub
commit ab45fe62e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -531,10 +531,15 @@ class VimeoIE(VimeoBaseInfoExtractor):
r'<embed[^>]+?src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?vimeo\.com/moogaloop\.swf.+?)\1',
# Look more for non-standard embedded Vimeo player
r'<video[^>]+src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?vimeo\.com/[0-9]+)\1',
# Look for JS embedded Vimeo player
r'<video-player[^>]+vimeo-id="(?P<id>\d+)"',
)
for embed_re in PLAIN_EMBED_RE:
for mobj in re.finditer(embed_re, webpage):
urls.append(mobj.group('url'))
if mobj.group('id'):
urls.append('https://player.vimeo.com/video/' + mobj.group('id'))
else:
urls.append(mobj.group('url'))
return urls
@staticmethod