diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-04 19:45:05 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-04 19:49:39 +0530 |
commit | 2a938746f3db75fc160aab055e889f1e31ccabed (patch) | |
tree | cc92d08d51fb52b11e8e5aa0bd97a314945b81fc | |
parent | 933dbf5a558602278a79d55fe1aaf8f66ea54e6b (diff) | |
download | hypervideo-pre-2a938746f3db75fc160aab055e889f1e31ccabed.tar.lz hypervideo-pre-2a938746f3db75fc160aab055e889f1e31ccabed.tar.xz hypervideo-pre-2a938746f3db75fc160aab055e889f1e31ccabed.zip |
Fix verbose log when stdout/stderr encoding is `None`
See: 5c104538270e5fc5ff8cf1007c34c0bf1e82e003
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 23e42f740..0aee3b122 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -3588,7 +3588,7 @@ class YoutubeDL(object): return def get_encoding(stream): - ret = getattr(stream, 'encoding', 'missing (%s)' % type(stream).__name__) + ret = str(getattr(stream, 'encoding', 'missing (%s)' % type(stream).__name__)) if not supports_terminal_sequences(stream): from .compat import WINDOWS_VT_MODE ret += ' (No VT)' if WINDOWS_VT_MODE is False else ' (No ANSI)' |