mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-26 02:55:17 +00:00
parent
3262f8abf2
commit
3efb96a6d1
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,7 @@
|
|||
ReExtractInfo,
|
||||
register_socks_protocols,
|
||||
RejectedVideoReached,
|
||||
remove_terminal_sequences,
|
||||
render_table,
|
||||
replace_extension,
|
||||
SameFileError,
|
||||
|
@ -776,6 +777,7 @@ def to_stderr(self, message, only_once=False):
|
|||
def to_console_title(self, message):
|
||||
if not self.params.get('consoletitle', False):
|
||||
return
|
||||
message = remove_terminal_sequences(message)
|
||||
if compat_os_name == 'nt':
|
||||
if ctypes.windll.kernel32.GetConsoleWindow():
|
||||
# c_wchar_p() might not be necessary if `message` is
|
||||
|
|
Loading…
Reference in a new issue