diff options
author | Jesús <heckyel@hyperbola.info> | 2021-10-31 11:36:52 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-10-31 11:36:52 -0500 |
commit | 5bb25093eb718346ab8a723d2c04f0066fc3958a (patch) | |
tree | 8a7fa5611895a933eaf1ef1623f7b9e1a1c36157 /yt_dlp/compat.py | |
parent | c7afb25e19a91493db6069d1db9f7d1bc8491dc1 (diff) | |
parent | 652fb0d446524af4b783276babd55f5fc6a3afeb (diff) | |
download | hypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.tar.lz hypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.tar.xz hypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.zip |
updated from upstream | 31/10/2021 at 11:36
Diffstat (limited to 'yt_dlp/compat.py')
-rw-r--r-- | yt_dlp/compat.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/compat.py b/yt_dlp/compat.py index b107b2114..8508f1465 100644 --- a/yt_dlp/compat.py +++ b/yt_dlp/compat.py @@ -19,6 +19,7 @@ import shlex import shutil import socket import struct +import subprocess import sys import tokenize import urllib @@ -162,7 +163,9 @@ except ImportError: def windows_enable_vt_mode(): # TODO: Do this the proper way https://bugs.python.org/issue30075 if compat_os_name != 'nt': return - os.system('') + startupinfo = subprocess.STARTUPINFO() + startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW + subprocess.Popen('', shell=True, startupinfo=startupinfo) # Deprecated |