forked from rDrama/rDrama
show correct max video size
parent
ca7fa50419
commit
5377472146
|
@ -92,7 +92,7 @@ def process_video(file):
|
|||
size = os.stat(old).st_size
|
||||
if SITE_NAME != 'WPD' and (size > MAX_VIDEO_SIZE_MB * 1024 * 1024 or not g.v.patron and size > MAX_VIDEO_SIZE_MB_PATRON * 1024 * 1024):
|
||||
os.remove(old)
|
||||
abort(413, f"Max video size is {MAX_IMAGE_AUDIO_SIZE_MB} MB ({MAX_VIDEO_SIZE_MB_PATRON} MB for paypigs)")
|
||||
abort(413, f"Max video size is {MAX_VIDEO_SIZE_MB} MB ({MAX_VIDEO_SIZE_MB_PATRON} MB for paypigs)")
|
||||
|
||||
extension = file.filename.split('.')[-1].lower()
|
||||
if extension not in ['avi', 'mp4', 'webm', 'm4v', 'mov', 'mkv']:
|
||||
|
|
Loading…
Reference in New Issue