diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-04 13:57:35 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-04 15:13:30 +0530 |
commit | 04f3fd2c8948621612d852f8f68ef549a484bfb6 (patch) | |
tree | 236ab487dfe39d699b052daf06c62b71ea7daf6e /yt_dlp/extractor/huya.py | |
parent | 85e801a9dbc671f97af92aebea18170e6a384374 (diff) |
[cleanup] Use `_html_extract_title`
Diffstat (limited to 'yt_dlp/extractor/huya.py')
-rw-r--r-- | yt_dlp/extractor/huya.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/huya.py b/yt_dlp/extractor/huya.py index b81439682..4e96f22fa 100644 --- a/yt_dlp/extractor/huya.py +++ b/yt_dlp/extractor/huya.py @@ -66,8 +66,7 @@ class HuyaLiveIE(InfoExtractor): room_info = try_get(stream_data, lambda x: x['data'][0]['gameLiveInfo']) if not room_info: raise ExtractorError('Can not extract the room info', expected=True) - title = room_info.get('roomName') or room_info.get('introduction') or self._html_search_regex( - r'<title>([^<]+)</title>', webpage, 'title') + title = room_info.get('roomName') or room_info.get('introduction') or self._html_extract_title(webpage) screen_type = room_info.get('screenType') live_source_type = room_info.get('liveSourceType') stream_info_list = stream_data['data'][0]['gameStreamInfoList'] |