From 47e2c48373ce1027d8f82e606578f25c701f0eca Mon Sep 17 00:00:00 2001 From: Kay B <> Date: Wed, 7 Mar 2018 19:38:13 +0100 Subject: [PATCH] [heise] Further simplify title extraction --- youtube_dl/extractor/heise.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/heise.py b/youtube_dl/extractor/heise.py index 768f995b3..f988ec162 100644 --- a/youtube_dl/extractor/heise.py +++ b/youtube_dl/extractor/heise.py @@ -70,13 +70,11 @@ class HeiseIE(InfoExtractor): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) - title = self._html_search_meta('fulltitle', webpage, default=None) - if not title or title == "c't": + title = self._og_search_title(webpage) + if not title: title = self._search_regex( r']+class="videoplayerjw"[^>]+data-title="([^"]+)"', webpage, 'title', default=None) - if not title: - title = self._og_search_title(webpage) yt_urls = YoutubeIE._extract_urls(webpage) if yt_urls: