From 16216df44aa984d17df2d8cc641f4839255702eb Mon Sep 17 00:00:00 2001 From: Aza Maulana Date: Mon, 24 Aug 2020 15:44:34 +0700 Subject: [PATCH] fix inacurate filesize --- bot/plugins/split.py | 1 + 1 file changed, 1 insertion(+) 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