Skip to content

Commit e928e00

Browse files
committed
Format chunk_length to int
1 parent a31b38c commit e928e00

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rabbithole/mp3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def chunk_mp3(filepath: str, chunk_length: int = 10) -> list[str]:
6060

6161
# PyDub handles time in milliseconds
6262
chunk_length *= 60 * 1000 * 1.01 # Add 1% to the chunk length to account for overlap
63+
chunk_length = int(chunk_length)
6364

6465
if length < chunk_length:
6566
return [filepath]

0 commit comments

Comments
 (0)