From 1764d54e5ddbfb6c42dbd0b0e733ce532da9f8f3 Mon Sep 17 00:00:00 2001 From: Drugsosos <44712637+Drugsosos@users.noreply.github.com> Date: Thu, 9 Jun 2022 02:01:12 +0300 Subject: [PATCH] added name_normalize to fix bugs with forbidden chars in videoname --- video_creation/final_video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video_creation/final_video.py b/video_creation/final_video.py index 07b0ffc..27a351d 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -21,8 +21,8 @@ def name_normalize( name: str ) -> str: name = re.sub(r'[?\\"%*:|<>]', '', name) - name = re.sub(r'(\D+)/(\D+)', r'\1\ or\ \2', name) - name = re.sub(r'(\d+)/(\d+)', r'\1\ of\ \2', name) + name = re.sub(r'(\D+)/(\D+)', r'\1 or\ \2', name) + name = re.sub(r'(\d+)/(\d+)', r'\1 of\ \2', name) return name