show correct max video size

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-12 01:53:23 -07:00
parent ca7fa50419
commit 5377472146
1 changed files with 1 additions and 1 deletions

View File

@ -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']: