diff options
author | The Hatsune Daishi <nao20010128@gmail.com> | 2021-09-22 23:12:04 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 19:42:04 +0530 |
commit | bd50a52b0d7247cdbf205eb851ce33ae4b89c516 (patch) | |
tree | 1b51741f1eb2e5c435478ed3e4dff650541c2b3b /yt_dlp/utils.py | |
parent | c12977bdc455883e7061c2275da093c5b419a32a (diff) | |
download | hypervideo-pre-bd50a52b0d7247cdbf205eb851ce33ae4b89c516.tar.lz hypervideo-pre-bd50a52b0d7247cdbf205eb851ce33ae4b89c516.tar.xz hypervideo-pre-bd50a52b0d7247cdbf205eb851ce33ae4b89c516.zip |
Basic framework for simultaneous download of multiple formats (#1036)
Authored by: nao20010128nao
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index de0213b14..9eb47fccb 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -6373,3 +6373,11 @@ def traverse_dict(dictn, keys, casesense=True): def variadic(x, allowed_types=(str, bytes)): return x if isinstance(x, collections.abc.Iterable) and not isinstance(x, allowed_types) else (x,) + + +def get_windows_version(): + ''' Get Windows version. None if it's not running on Windows ''' + if compat_os_name == 'nt': + return version_tuple(platform.win32_ver()[1]) + else: + return None |