mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 02:43:21 +08:00
[heise] fix my non-sense in title extraction
This commit is contained in:
parent
18f011fd03
commit
60b76bdb01
@ -74,9 +74,9 @@ class HeiseIE(InfoExtractor):
|
|||||||
if not title or title == "c't":
|
if not title or title == "c't":
|
||||||
title = self._search_regex(
|
title = self._search_regex(
|
||||||
r'<div[^>]+class="videoplayerjw"[^>]+data-title="([^"]+)"',
|
r'<div[^>]+class="videoplayerjw"[^>]+data-title="([^"]+)"',
|
||||||
webpage, 'title', default=None, fatal=False)
|
webpage, 'title', default=None)
|
||||||
if not title:
|
if not title:
|
||||||
self._og_search_title(webpage)
|
title = self._og_search_title(webpage)
|
||||||
|
|
||||||
yt_urls = YoutubeIE._extract_urls(webpage)
|
yt_urls = YoutubeIE._extract_urls(webpage)
|
||||||
if yt_urls:
|
if yt_urls:
|
||||||
|
Loading…
Reference in New Issue
Block a user