diff --git a/segments.py b/segments.py index 855bc485..53c1e51c 100644 --- a/segments.py +++ b/segments.py @@ -89,7 +89,7 @@ def parseFolders(apath: str, rpath: str, allowed_result_filetypes: list[str] = [ for root, _, files in os.walk(apath): for f in files: if f.rsplit(".", 1)[-1].lower() in cfg.ALLOWED_FILETYPES: - table_key = os.path.join(root.strip(apath), f.split(".", 1)[0]) + table_key = os.path.join(root.strip(apath), f.rsplit(".", 1)[0]) data[table_key] = {"audio": os.path.join(root, f), "result": ""} # Get all result files