Skip to content

Commit

Permalink
yt_dlp: 65de7d204ce88c0225df1321060304baab85dbd8
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 26, 2023
1 parent c8e7180 commit a7d427a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yt_dlp/utils/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def replace_insane(char):
elif char in '\\/|*<>':
return '\0_'
if restricted and (char in '!&\'()[]{}$;`^,#' or char.isspace() or ord(char) > 127):
return '\0_'
return '' if unicodedata.category(char)[0] in 'CM' else '\0_'
return char

# Replace look-alike Unicode glyphs
Expand Down

0 comments on commit a7d427a

Please sign in to comment.