diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-20 08:05:57 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-20 08:33:55 +0530 |
commit | 282f570918f936a3aa9f57d4c85de4693da882c9 (patch) | |
tree | 2b8dd78cd1a04bd3ff7efb64156052dbac16db6c /yt_dlp/YoutubeDL.py | |
parent | c07a39ae8e3e3b71ec8c7c0fa3e91b6908584316 (diff) | |
download | hypervideo-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.py | 4 |
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 |