Skip to content

Commit 4d21e25

Browse files
committed
smear to be less
1 parent 0eac22b commit 4d21e25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

predict.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ def predict(
9696
startSeconds = parsed_input_route_or_url.start_seconds
9797
lengthSeconds = parsed_input_route_or_url.length_seconds
9898

99+
# Set filesize to be 1 less megabyte than the input. Discord only allows 25MB but sometimes the file is slightly larger than 25MB when set to 25MB.
100+
fileSize = fileSize - 1
101+
99102
# Enforce the minimum and maximum lengths
100103
if lengthSeconds < MIN_LENGTH_SECONDS:
101104
raise ValueError(

0 commit comments

Comments
 (0)