aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-03-18 22:18:02 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-03-18 22:19:31 +0530
commita515a78dd3e16b7854844829293ef4e9f3c62319 (patch)
treec509ee9f86137d3a4a40205d917ce46e9274adbf /yt_dlp/YoutubeDL.py
parente167860ce71bae6e46b77b47d5958c9c26d5543f (diff)
downloadhypervideo-pre-a515a78dd3e16b7854844829293ef4e9f3c62319.tar.lz
hypervideo-pre-a515a78dd3e16b7854844829293ef4e9f3c62319.tar.xz
hypervideo-pre-a515a78dd3e16b7854844829293ef4e9f3c62319.zip
fix some typos and linter
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index e79039b5c..d5b1ba07c 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -2536,9 +2536,9 @@ class YoutubeDL(object):
}
keep_key = lambda k: k in exceptions['keep'] or not (k.startswith('_') or k in exceptions['remove'])
filter_fn = lambda obj: (
- list(map(filter_fn, obj)) if isinstance(obj, (list, tuple))
- else obj if not isinstance(obj, dict)
- else dict((k, filter_fn(v)) for k, v in obj.items() if keep_key(k)))
+ list(map(filter_fn, obj)) if isinstance(obj, (list, tuple))
+ else obj if not isinstance(obj, dict)
+ else dict((k, filter_fn(v)) for k, v in obj.items() if keep_key(k)))
return filter_fn(info_dict)
def run_pp(self, pp, infodict):