aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-05-17 22:08:12 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-05-17 22:33:15 +0530
commit7896214c42db91bbf62853b5c7359c9e83064cf1 (patch)
tree3f9b15bf15b4861917e198f225c625de0ba313cf /yt_dlp/YoutubeDL.py
parent5792c950bfd9f8b6730659b3046b41c1aea64c98 (diff)
downloadhypervideo-pre-7896214c42db91bbf62853b5c7359c9e83064cf1.tar.lz
hypervideo-pre-7896214c42db91bbf62853b5c7359c9e83064cf1.tar.xz
hypervideo-pre-7896214c42db91bbf62853b5c7359c9e83064cf1.zip
Bugfix for 591bb9d3553a4d7b453777c1e28e0948741e3b50
Closes #3769
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 d1094a01b..31624f181 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -555,7 +555,7 @@ class YoutubeDL:
)
self._allow_colors = Namespace(**{
type_: not self.params.get('no_color') and supports_terminal_sequences(stream)
- for type_, stream in self._out_files.items_ if type_ != 'console'
+ for type_, stream in self._out_files if type_ != 'console'
})
if sys.version_info < (3, 6):
@@ -3611,7 +3611,7 @@ class YoutubeDL:
sys.getfilesystemencoding(),
self.get_encoding(),
', '.join(
- f'{key} {get_encoding(stream)}' for key, stream in self._out_files.items_
+ f'{key} {get_encoding(stream)}' for key, stream in self._out_files
if stream is not None and key != 'console')
)