mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-30 11:34:53 +00:00
Basic framework for simultaneous download of multiple formats (#1036)
Authored by: nao20010128nao
This commit is contained in:

committed by
GitHub

parent
c12977bdc4
commit
bd50a52b0d
@@ -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
|
||||
|
Reference in New Issue
Block a user