Ok, here is the fix without regexps

This commit is contained in:
Pozitronik 2023-06-18 21:05:47 +04:00
parent 156ae66a57
commit 7fe20aba5c

View File

@ -63,7 +63,8 @@ def restore_audio(target_path: str, output_path: str) -> None:
def get_temp_frame_paths(target_path: str) -> List[str]:
temp_directory_path = get_temp_directory_path(target_path)
return glob.glob(re.sub(r'([\[\]])','[\\1]', os.path.join(temp_directory_path, '*.png')))
files = glob.glob('*.png', root_dir=temp_directory_path)
return [os.path.join(temp_directory_path, item) for item in files]
def get_temp_directory_path(target_path: str) -> str: