[Heise] Fix for PR #14109

This commit is contained in:
Kay B 2017-09-05 21:23:52 +02:00
parent f1f2c48323
commit 6ef7228b30

View File

@ -8,8 +8,7 @@ from ..utils import (
parse_iso8601, parse_iso8601,
xpath_text, xpath_text,
) )
from .youtube import YoutubeIE
import re
class HeiseIE(InfoExtractor): class HeiseIE(InfoExtractor):
@ -60,12 +59,9 @@ class HeiseIE(InfoExtractor):
r'<div[^>]+class="videoplayerjw"[^>]+data-title="([^"]+)"', r'<div[^>]+class="videoplayerjw"[^>]+data-title="([^"]+)"',
webpage, 'title') webpage, 'title')
yt_videos = re.findall( yt_urls = YoutubeIE._extract_urls(webpage)
r'<iframe[^>]+class="yt_video"[^>]+src="//([^"]+)', webpage) if yt_urls:
if yt_videos: return self.playlist_from_matches(yt_urls, video_id, title, ie=YoutubeIE.ie_key())
for i in range(len(yt_videos)):
yt_videos[i] = 'https://' + yt_videos[i]
return self.playlist_from_matches(yt_videos, title, 'Youtube')
container_id = self._search_regex( container_id = self._search_regex(
r'<div class="videoplayerjw"[^>]+data-container="([0-9]+)"', r'<div class="videoplayerjw"[^>]+data-container="([0-9]+)"',