From 8399e09e7fbd65cbfa3abed917fcab91ceda4b12 Mon Sep 17 00:00:00 2001 From: Alan Xiao Date: Wed, 23 Apr 2025 20:31:39 -0400 Subject: [PATCH] Update _utils.py More fixes.... I apologize for the excessive CI pipeline usage. --- yt_dlp/utils/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py index e7f0b318b..4a598bfb4 100644 --- a/yt_dlp/utils/_utils.py +++ b/yt_dlp/utils/_utils.py @@ -701,7 +701,7 @@ def suffix_sanitize(match): other = match.group(3) if match.group(3) else '' if not match.group(2) and other: return match.group(1) + other - return match.group(1) + '_res' + match.group(2) + other # suffix the reserved portion only + return match.group(1) + '_res' + match.group(2) + other # suffix the reserved portion only return re.sub(fr'{WINDOWS_RESERVED_NAMES_RE}(\.*)(.*$)', suffix_sanitize, s)