mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-09 18:26:05 +08:00
Updated fix for Heise extractor
This commit is contained in:
parent
6f07731841
commit
1b07a645e8
@ -56,11 +56,9 @@ class HeiseIE(InfoExtractor):
|
|||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
url = re.sub(r'^https?://(?:www\.)?heise\.de/',
|
mobile_url = re.sub(r'^https?://(?:www\.)?heise\.de/', 'https://m.heise.de/', url)
|
||||||
'https://m.heise.de/',
|
video_id = self._match_id(mobile_url)
|
||||||
url)
|
webpage = self._download_webpage(mobile_url, video_id)
|
||||||
video_id = self._match_id(url)
|
|
||||||
webpage = self._download_webpage(url, video_id)
|
|
||||||
|
|
||||||
title = self._html_search_meta('fulltitle', webpage, default=None)
|
title = self._html_search_meta('fulltitle', webpage, default=None)
|
||||||
if not title or title == "c't":
|
if not title or title == "c't":
|
||||||
|
Loading…
Reference in New Issue
Block a user