From 60105e7cbe527d425d439f2de9a5490031c1467b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Mon, 9 Nov 2026 15:26:36 -0300 Subject: [PATCH] feat: Site videos up to 500 MB Dropstar uploads the six videos themselves; 100 MB was our own limit and could stop a longer video in the videos area. ClamAV scans up to 2000 MiB, so 500 MB is still scanned. Co-Authored-By: Claude Opus 5.5 (1M context) --- app/api/site_videos.py | 4 ++-- web/kanban.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/site_videos.py b/app/api/site_videos.py index c319a60..ad1ab50 100644 --- a/app/api/site_videos.py +++ b/app/api/site_videos.py @@ -22,7 +22,7 @@ CATALOG = { 'retirada': 'Retirada em Franca em 24 h', 'sala': 'A sala às 3 da manhã', } -VIDEO_MAX = 100 * 1024 * 1024 +VIDEO_MAX = 500 * 1024 * 1024 CAPTIONS_MAX = 1024 * 1024 @@ -46,7 +46,7 @@ def _kind(upload): return 'video/webm', b'\x1a\x45\xdf\xa3', 0 if name.endswith('.vtt') and upload['size'] <= CAPTIONS_MAX: return 'text/vtt', b'WEBVTT', 0 - raise HTTPException(422, 'Use MP4/WebM de até 100 MB ou legenda VTT de até 1 MB.') + raise HTTPException(422, 'Use MP4/WebM de até 500 MB ou legenda VTT de até 1 MB.') def _checked_upload(c, uid, identity, expected): diff --git a/web/kanban.html b/web/kanban.html index 1480532..c08d32a 100644 --- a/web/kanban.html +++ b/web/kanban.html @@ -165,7 +165,7 @@