diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-24 14:46:07 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-24 15:00:17 +0530 |
commit | 9f1a1c36e60b14f9ff47d83234b4ea61c5f5e2f7 (patch) | |
tree | 8c2b39315a6313d341c760fe03b47419509ba06d /yt_dlp/utils.py | |
parent | 96565c7e55bc3d97a1d4232fe974091dd45f5fe9 (diff) | |
download | hypervideo-pre-9f1a1c36e60b14f9ff47d83234b4ea61c5f5e2f7.tar.lz hypervideo-pre-9f1a1c36e60b14f9ff47d83234b4ea61c5f5e2f7.tar.xz hypervideo-pre-9f1a1c36e60b14f9ff47d83234b4ea61c5f5e2f7.zip |
Separate `--check-all-formats` from `--check-formats`
Previously, `--check-formats` tested only the selected video formats, but ALL thumbnails
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 08f9a5dc9..2c3ab00dc 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -4050,6 +4050,8 @@ class LazyList(collections.abc.Sequence): def __exhaust(self): self.__cache.extend(self.__iterable) + # Discard the emptied iterable to make it pickle-able + self.__iterable = [] return self.__cache def exhaust(self): |