1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-12 07:37:21 +08:00

[Heise] Improved yt regex.

This commit is contained in:
kayb94 2017-08-31 18:41:55 +02:00
parent 44b2c836ae
commit 25a0f8e299

@ -58,7 +58,7 @@ class HeiseIE(InfoExtractor):
# Find embedded youtube videos
yt_videos = re.findall(
r'<iframe class="yt_video" width="[0-9]+" height="[0-9]+" src="//(.+?)"', # noqa
r'<iframe[^>]+class="yt_video"[^>]+src="//([^"]+)',
webpage)
if yt_videos:
return self.playlist_from_matches(yt_videos, title, 'Youtube')