aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-02-24 04:34:59 +0800
committerJesús <heckyel@hyperbola.info>2022-02-24 04:34:59 +0800
commit50d9ac9fa684f0190021be23756575f989a70dc7 (patch)
treee8ad809e09f76ff6ac65a51846c06d0d3f58b432 /yt_dlp/extractor/common.py
parent21cc56c6e71361ccf17cebb6b131113501815ae6 (diff)
parent09b49e1f688831c3ad7181decf38c90f8451e6c4 (diff)
downloadhypervideo-pre-50d9ac9fa684f0190021be23756575f989a70dc7.tar.lz
hypervideo-pre-50d9ac9fa684f0190021be23756575f989a70dc7.tar.xz
hypervideo-pre-50d9ac9fa684f0190021be23756575f989a70dc7.zip
updated from upstream | 24/02/2022 at 04:34
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 04d4c0733..d8bb21137 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -1307,6 +1307,10 @@ class InfoExtractor(object):
def _og_search_url(self, html, **kargs):
return self._og_search_property('url', html, **kargs)
+ def _html_extract_title(self, html, name, **kwargs):
+ return self._html_search_regex(
+ r'(?s)<title>(.*?)</title>', html, name, **kwargs)
+
def _html_search_meta(self, name, html, display_name=None, fatal=False, **kwargs):
name = variadic(name)
if display_name is None: