0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-01 23:12:40 +00:00

[generic] Correct handling of embedded vimeo players (#3955)

This commit is contained in:
Philipp Hagemeister 2014-10-15 13:50:53 +02:00
parent df928d500f
commit 09a42738fc

View file

@ -609,13 +609,13 @@ def _playlist_from_matches(matches, getter, ie=None):
if mobj:
player_url = unescapeHTML(mobj.group('url'))
surl = smuggle_url(player_url, {'Referer': url})
return self.url_result(surl, 'Vimeo')
return self.url_result(surl)
# Look for embedded (swf embed) Vimeo player
mobj = re.search(
r'<embed[^>]+?src="(https?://(?:www\.)?vimeo\.com/moogaloop\.swf.+?)"', webpage)
r'<embed[^>]+?src="((?:https?:)?//(?:www\.)?vimeo\.com/moogaloop\.swf.+?)"', webpage)
if mobj:
return self.url_result(mobj.group(1), 'Vimeo')
return self.url_result(mobj.group(1))
# Look for embedded YouTube player
matches = re.findall(r'''(?x)