mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-03 07:56:41 -05:00
parent
933dbf5a55
commit
2a938746f3
@ -3588,7 +3588,7 @@ class YoutubeDL(object):
|
|||||||
return
|
return
|
||||||
|
|
||||||
def get_encoding(stream):
|
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):
|
if not supports_terminal_sequences(stream):
|
||||||
from .compat import WINDOWS_VT_MODE
|
from .compat import WINDOWS_VT_MODE
|
||||||
ret += ' (No VT)' if WINDOWS_VT_MODE is False else ' (No ANSI)'
|
ret += ' (No VT)' if WINDOWS_VT_MODE is False else ' (No ANSI)'
|
||||||
|
Loading…
Reference in New Issue
Block a user