diff options
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r-- | yt_dlp/extractor/common.py | 7 |
1 files changed, 2 insertions, 5 deletions
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 |