support recent (2019) squarespace embeds

This commit is contained in:
Barbara Miller 2019-07-15 18:47:46 -07:00
parent 2f1991ff14
commit ffa9e0a38e

View File

@ -1558,13 +1558,14 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
for mobj in re.finditer(r'''(?x)
(?:
<iframe[^>]+?src=|
&lt;iframe[^>]+?src=|
data-video-url=|
<embed[^>]+?src=|
embedSWF\(?:\s*|
<object[^>]+data=|
new\s+SWFObject\(
)
(["\'])
(["\']|\&quot;)
(?P<url>(?:https?:)?//(?:www\.)?youtube(?:-nocookie)?\.com/
(?:embed|v|p)/[0-9A-Za-z_-]{11}.*?)
\1''', webpage)]