From 6ef7228b3086a39cf9371e6bf1159696d7114c61 Mon Sep 17 00:00:00 2001 From: Kay B <> Date: Tue, 5 Sep 2017 21:23:52 +0200 Subject: [PATCH] [Heise] Fix for PR #14109 --- youtube_dl/extractor/heise.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/youtube_dl/extractor/heise.py b/youtube_dl/extractor/heise.py index 4d9d1c2fd..a4f1dcd2f 100644 --- a/youtube_dl/extractor/heise.py +++ b/youtube_dl/extractor/heise.py @@ -8,8 +8,7 @@ from ..utils import ( parse_iso8601, xpath_text, ) - -import re +from .youtube import YoutubeIE class HeiseIE(InfoExtractor): @@ -60,13 +59,10 @@ class HeiseIE(InfoExtractor): r']+class="videoplayerjw"[^>]+data-title="([^"]+)"', webpage, 'title') - yt_videos = re.findall( - r']+class="yt_video"[^>]+src="//([^"]+)', webpage) - if yt_videos: - for i in range(len(yt_videos)): - yt_videos[i] = 'https://' + yt_videos[i] - return self.playlist_from_matches(yt_videos, title, 'Youtube') - + yt_urls = YoutubeIE._extract_urls(webpage) + if yt_urls: + return self.playlist_from_matches(yt_urls, video_id, title, ie=YoutubeIE.ie_key()) + container_id = self._search_regex( r'
]+data-container="([0-9]+)"', webpage, 'container ID')