aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-11-20 08:05:57 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-11-20 08:33:55 +0530
commit282f570918f936a3aa9f57d4c85de4693da882c9 (patch)
tree2b8dd78cd1a04bd3ff7efb64156052dbac16db6c /yt_dlp/YoutubeDL.py
parentc07a39ae8e3e3b71ec8c7c0fa3e91b6908584316 (diff)
downloadhypervideo-pre-282f570918f936a3aa9f57d4c85de4693da882c9.tar.lz
hypervideo-pre-282f570918f936a3aa9f57d4c85de4693da882c9.tar.xz
hypervideo-pre-282f570918f936a3aa9f57d4c85de4693da882c9.zip
[utils] Fix error when copying `LazyList`
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 62ec087b8..fb7e12624 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -2166,7 +2166,7 @@ class YoutubeDL(object):
t['url'] = sanitize_url(t['url'])
if self.params.get('check_formats') is True:
- info_dict['thumbnails'] = LazyList(check_thumbnails(thumbnails[::-1])).reverse()
+ info_dict['thumbnails'] = LazyList(check_thumbnails(thumbnails[::-1]), reverse=True)
else:
info_dict['thumbnails'] = thumbnails
@@ -2361,7 +2361,7 @@ class YoutubeDL(object):
# TODO Central sorting goes here
if self.params.get('check_formats') is True:
- formats = LazyList(self._check_formats(formats[::-1])).reverse()
+ formats = LazyList(self._check_formats(formats[::-1]), reverse=True)
if not formats or formats[0] is not info_dict:
# only set the 'formats' fields if the original info_dict list them