1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-21 01:05:38 +08:00

[GenericIE] Also detect youtube if src url of iframe is embedded in ' instaed of "

This commit is contained in:
rzhxeo 2013-11-05 02:08:02 +01:00
parent 19b0668251
commit 2dcf7d8f99

View File

@ -160,9 +160,9 @@ class GenericIE(InfoExtractor):
# Look for embedded YouTube player
mobj = re.search(
r'<iframe[^>]+?src="(https?://(?:www\.)?youtube.com/embed/.+?)"', webpage)
r'<iframe[^>]+?src=(["\'])(?P<url>https?://(?:www\.)?youtube.com/embed/.+?)\1', webpage)
if mobj:
surl = unescapeHTML(mobj.group(1))
surl = unescapeHTML(mobj.group(u'url'))
return self.url_result(surl, 'Youtube')
# Look for Bandcamp pages with custom domain