From 00b173857d3a9fa59eb64312006f533b6932bcc3 Mon Sep 17 00:00:00 2001 From: ben_mkiv Date: Thu, 24 Aug 2023 09:57:01 +0200 Subject: [PATCH] fix filename generation which didn't work and overwrote existing files --- src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index 1eaefb7..8e5f94e 100755 --- a/src/utils.py +++ b/src/utils.py @@ -1099,7 +1099,7 @@ def generate_tortoise(**kwargs): for i, file in enumerate(os.listdir(outdir)): filename = os.path.basename(file) extension = os.path.splitext(filename)[-1][1:] - if extension != ".json" and extension != ".wav": + if extension != "json" and extension != "wav": continue match = re.findall(rf"^{voice}_(\d+)(?:.+?)?{extension}$", filename) if match and len(match) > 0: