We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eac22b commit 4d21e25Copy full SHA for 4d21e25
predict.py
@@ -96,6 +96,9 @@ def predict(
96
startSeconds = parsed_input_route_or_url.start_seconds
97
lengthSeconds = parsed_input_route_or_url.length_seconds
98
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
+
102
# Enforce the minimum and maximum lengths
103
if lengthSeconds < MIN_LENGTH_SECONDS:
104
raise ValueError(
0 commit comments