From 4faeb2e6185a81063bfe9bc03daa951418570ee8 Mon Sep 17 00:00:00 2001 From: Damon Hayhurst Date: Tue, 28 Feb 2023 23:32:48 +0000 Subject: [PATCH 1/2] Fix for audioname --- polymath.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polymath.py b/polymath.py index 9e302bc..3d787d3 100755 --- a/polymath.py +++ b/polymath.py @@ -132,7 +132,8 @@ def audio_process(vids, videos): print('------ process audio',vid) # extract file name audioname = vid.split("/")[-1] - audioname, _ = audioname.split(".") + print(audioname) + audioname, _ = os.path.splitext(audioname) # generate a unique ID based on file path and name hash_object = hashlib.sha256(vid.encode()) From 5251756c92d0a2264ff0d1dc3f77b1ed182188c4 Mon Sep 17 00:00:00 2001 From: Damon Hayhurst Date: Tue, 28 Feb 2023 23:39:31 +0000 Subject: [PATCH 2/2] remove print --- polymath.py | 1 - 1 file changed, 1 deletion(-) diff --git a/polymath.py b/polymath.py index 3d787d3..647ecd4 100755 --- a/polymath.py +++ b/polymath.py @@ -132,7 +132,6 @@ def audio_process(vids, videos): print('------ process audio',vid) # extract file name audioname = vid.split("/")[-1] - print(audioname) audioname, _ = os.path.splitext(audioname) # generate a unique ID based on file path and name