aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-01-07 02:48:34 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-01-07 02:48:34 +0530
commitedfc7725b1f2b4f7838836ca0df613ec0e058cac (patch)
tree468a7b9f2c60efdd9995676dac9945a25c0d8930 /yt_dlp/extractor/common.py
parentb382c1fc6a6bfff1b6373296961beabe60ffb72c (diff)
downloadhypervideo-pre-edfc7725b1f2b4f7838836ca0df613ec0e058cac.tar.lz
hypervideo-pre-edfc7725b1f2b4f7838836ca0df613ec0e058cac.tar.xz
hypervideo-pre-edfc7725b1f2b4f7838836ca0df613ec0e058cac.zip
[cleanup] Misc
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py7
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