diff options
author | Jesús <heckyel@hyperbola.info> | 2022-02-24 04:34:59 +0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-02-24 04:34:59 +0800 |
commit | 50d9ac9fa684f0190021be23756575f989a70dc7 (patch) | |
tree | e8ad809e09f76ff6ac65a51846c06d0d3f58b432 /yt_dlp/extractor/common.py | |
parent | 21cc56c6e71361ccf17cebb6b131113501815ae6 (diff) | |
parent | 09b49e1f688831c3ad7181decf38c90f8451e6c4 (diff) | |
download | hypervideo-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.py | 4 |
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: |