Skip to main content

Escape another character

ID
a2405be
date
2025-12-17 11:40:31+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
1649481
message
Escape another character
changed files
1 file, 1 addition, 1 deletion

Changed files

yt-dlp_alexwlchan.py (7808) → yt-dlp_alexwlchan.py (7828)

diff --git a/yt-dlp_alexwlchan.py b/yt-dlp_alexwlchan.py
index f90883c..b681950 100755
--- a/yt-dlp_alexwlchan.py
+++ b/yt-dlp_alexwlchan.py
@@ -151,7 +151,7 @@ def cleanup_paths(dir_path: Path) -> None:
     for p in dir_path.iterdir():
         old_name = p.name
 
-        new_name = p.name.replace("#", " ").replace("?", " ").replace("⧸", "-")
+        new_name = p.name.replace("#", " ").replace("?", " ").replace("⧸", "-").replace(':', '-')
         new_name = re.sub(r"\s+", " ", new_name)
 
         if old_name == new_name: