Skip to content

Commit

Permalink
Fix file sorting in clip_audio function
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinderVosDeWael committed Dec 19, 2023
1 parent 49bd1ca commit 60d087e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cloai/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def clip_audio(
logger.warning("Running ffmpeg: %s", " ".join(stream.compile()))
stream.run()

files = list(pathlib.Path(out_dir).glob(f"*{uuid_id}*.mp3")).sort()
files = list(pathlib.Path(out_dir).glob(f"*{uuid_id}*.mp3"))
files.sort()
yield from files


Expand Down

0 comments on commit 60d087e

Please sign in to comment.