diff --git a/bot/plugins/split.py b/bot/plugins/split.py index e7f583af..e6558569 100644 --- a/bot/plugins/split.py +++ b/bot/plugins/split.py @@ -58,6 +58,7 @@ async def video(filepath, size): vbyterate = int(video_stream['bit_rate']) / 8 abyterate = int(audio_stream['bit_rate']) / 8 + size = size * 9 // 10 max_duration = size // (vbyterate + abyterate) splited_duration = 0