mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-13 17:42:29 +03:00
Is this maximum part size possible?
This commit is contained in:
parent
09dd092ec2
commit
0020c8fd60
|
@ -1341,10 +1341,7 @@ def get_appropriated_part_size(file_size):
|
||||||
return 128
|
return 128
|
||||||
if file_size <= 786432000: # 750MB
|
if file_size <= 786432000: # 750MB
|
||||||
return 256
|
return 256
|
||||||
if file_size <= 4294967000: # 4000MB
|
return 512
|
||||||
return 512
|
|
||||||
|
|
||||||
raise ValueError('File size too large')
|
|
||||||
|
|
||||||
|
|
||||||
def encode_waveform(waveform):
|
def encode_waveform(waveform):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user