Fix the video2audio script

Prevent stripping of the "4" character at the end of the random number.
This commit is contained in:
RangerUFO
2023-08-30 20:40:03 +08:00
parent 7946460e82
commit e3a941bad2
+1 -1
View File
@@ -18,7 +18,7 @@ def generate_infos():
def clip_file(file):
my_audio_clip = AudioFileClip(video_dir + file)
my_audio_clip.write_audiofile(audio_dir + file.rstrip(".mp4") + ".wav")
my_audio_clip.write_audiofile(audio_dir + file.rstrip("mp4") + "wav")
if __name__ == "__main__":