Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
fix inacurate filesize
Browse files Browse the repository at this point in the history
  • Loading branch information
azamaulanaaa committed Aug 24, 2020
1 parent 9aae22a commit 16216df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot/plugins/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16216df

Please sign in to comment.