From edfc7725b1f2b4f7838836ca0df613ec0e058cac Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 7 Jan 2023 02:48:34 +0530 Subject: [cleanup] Misc --- yt_dlp/extractor/common.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'yt_dlp/extractor/common.py') diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index b18d2e73e..ef9759974 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -1263,11 +1263,8 @@ class InfoExtractor: """ res = self._search_regex(pattern, string, name, default, fatal, flags, group) if isinstance(res, tuple): - return [clean_html(r).strip() for r in res] - elif res: - return clean_html(res).strip() - else: - return res + return tuple(map(clean_html, res)) + return clean_html(res) def _get_netrc_login_info(self, netrc_machine=None): username = None -- cgit v1.2.3