list_videos globs *.mp4 but requires a readable sidecar, so a video whose sidecar is gone is skipped. delete()/clear() dropped the sidecar first, so if the mp4 unlink then failed (a Windows lock from a concurrent stream/transcode), the still-present mp4 vanished from the gallery with no way to retry the delete. Unlink the mp4 first and only then best-effort the sidecar: the worst case is now an orphaned sidecar, which list_videos already ignores. |
||
|---|---|---|
| .. | ||
| assets | ||
| auth | ||
| core | ||
| hub | ||
| loggers | ||
| models | ||
| plugins | ||
| requirements | ||
| routes | ||
| state | ||
| storage | ||
| tests | ||
| utils | ||
| __init__.py | ||
| _platform_compat.py | ||
| cloudflare_tunnel.py | ||
| colab.py | ||
| main.py | ||
| run.py | ||
| startup_banner.py | ||