diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py index 13e8d149e9..1de901b1b7 100644 --- a/yt_dlp/utils/_utils.py +++ b/yt_dlp/utils/_utils.py @@ -168,7 +168,7 @@ def IDENTITY(x): NUMBER_RE = r'\d+(?:\.\d+)?' WINDOWS_RESERVED_NAMES_RE = fr'({'|'.join( - ("CON", "PRN", "AUX", "CLOCK$", "NUL") + ("CON", "CONOUT$", "CONIN$", "PRN", "AUX", "CLOCK$", "NUL") + tuple(f"{name:s}{num:d}" for name, num in itertools.product(("COM", "LPT"), range(0, 10))) + tuple( f"{name:s}{ssd:s}"