From 1b07a645e8128c3d57b4945f298cff7528776869 Mon Sep 17 00:00:00 2001 From: Hier631 <34473369+Hier631@users.noreply.github.com> Date: Tue, 19 Dec 2017 19:45:30 +0100 Subject: [PATCH] Updated fix for Heise extractor --- youtube_dl/extractor/heise.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/youtube_dl/extractor/heise.py b/youtube_dl/extractor/heise.py index a4a5e0a26..435567f7d 100644 --- a/youtube_dl/extractor/heise.py +++ b/youtube_dl/extractor/heise.py @@ -56,11 +56,9 @@ class HeiseIE(InfoExtractor): }] def _real_extract(self, url): - url = re.sub(r'^https?://(?:www\.)?heise\.de/', - 'https://m.heise.de/', - url) - video_id = self._match_id(url) - webpage = self._download_webpage(url, video_id) + mobile_url = re.sub(r'^https?://(?:www\.)?heise\.de/', 'https://m.heise.de/', url) + video_id = self._match_id(mobile_url) + webpage = self._download_webpage(mobile_url, video_id) title = self._html_search_meta('fulltitle', webpage, default=None) if not title or title == "c't":