diff --git a/recounting_dashboard.py b/recounting_dashboard.py index 8462926..a8f7633 100644 --- a/recounting_dashboard.py +++ b/recounting_dashboard.py @@ -119,7 +119,7 @@ def api_mp4_files(): if not d.is_dir(): continue folder_name = d.name - mp4s = sorted(d.glob("*.mp4"), key=lambda p: p.stat().st_mtime, reverse=True) + mp4s = sorted(d.glob("*.mp4"), key=lambda p: _parse_filename(p.name)[0] or 0) if not mp4s: continue files = []