From 26ef65a27e61d0df00538f76a650b2339034c940 Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Tue, 18 Aug 2026 12:02:30 -0400 Subject: [PATCH] fix: use Math.floor for short-clip threshold to match displayed duration ffprobe stores fractional seconds (e.g. 2.033s for a "2s" clip), so <= 2 was too strict. Math.floor matches what the badge shows the user. Co-Authored-By: Claude Sonnet 4.6 --- client/src/components/VideosView.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/components/VideosView.jsx b/client/src/components/VideosView.jsx index 0454e30..83fa938 100644 --- a/client/src/components/VideosView.jsx +++ b/client/src/components/VideosView.jsx @@ -80,8 +80,9 @@ export default function VideosView({ filters = {} }) { ); } - const shortCount = videos.filter(v => v.duration != null && v.duration <= SHORT_THRESHOLD).length; - const visible = showShort ? videos : videos.filter(v => v.duration == null || v.duration > SHORT_THRESHOLD); + const isShort = v => v.duration != null && Math.floor(v.duration) <= SHORT_THRESHOLD; + const shortCount = videos.filter(isShort).length; + const visible = showShort ? videos : videos.filter(v => !isShort(v)); const groups = groupByMonth(visible).filter(g => g.videos.length > 0); return (