[Heise] Improved yt regex.
This commit is contained in:
parent
44b2c836ae
commit
25a0f8e299
@ -58,7 +58,7 @@ class HeiseIE(InfoExtractor):
|
|||||||
|
|
||||||
# Find embedded youtube videos
|
# Find embedded youtube videos
|
||||||
yt_videos = re.findall(
|
yt_videos = re.findall(
|
||||||
r'<iframe class="yt_video" width="[0-9]+" height="[0-9]+" src="//(.+?)"', # noqa
|
r'<iframe[^>]+class="yt_video"[^>]+src="//([^"]+)',
|
||||||
webpage)
|
webpage)
|
||||||
if yt_videos:
|
if yt_videos:
|
||||||
return self.playlist_from_matches(yt_videos, title, 'Youtube')
|
return self.playlist_from_matches(yt_videos, title, 'Youtube')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user