
Windows apps
NZB Charm
A Windows media-library browser and player, with an Android TV companion app fed by a home server.
- When
- Aug – Nov 2026
- Status
- In personal use on PC and Android TV
- Built with
- C#.NET 10WPFASP.NET CorelibmpvKotlinJetpack Compose for TV
NZB Charm is a Windows desktop app for browsing a large local film and TV library and playing it, in its own built-in player or in VLC, with resume and watched tracking. It replaced a WinDev application its owner had used for years, then grew a home-network server and a native Android TV app that share the same library, viewing history and settings.
The need
The library sits on a large spinning disk, was browsed through an older WinDev app and was watched on TV through a third-party media server. The aim was one app built around that library: quick to browse without waking the disk needlessly, remembering where every file was stopped, and on the TV without a separate media-server product.
What was built
- A library tree and poster views built from the metadata files already stored beside the media (artwork, ratings, genres, plot, technical details), read lazily with no full scan of the disk and refreshed by a file watcher instead of polling.
- A built-in libmpv player beside VLC, with resume, per-show memory of tracks and speed, subtitle search behind an offline switch, picture subtitles turned into text by OCR, and a subtitle retimer.
- A skip engine for intros, recaps and credits that merges, by trust, chapter names, community databases, an audio fingerprint compared with a neighbouring episode, pictures compared around the viewer's own skips, and on-screen text recognition.
- A home-network server in ASP.NET Core that reuses the desktop's rule classes and streams files for direct play, and an Android TV app in Kotlin (Compose for TV, Media3) that installs and updates itself from that server.
- Deletes sent to the Recycle Bin after a six-second hold with Undo, on PC and TV alike: the only write the app ever makes to the library.
- More than 4,800 .NET tests and nearly 200 tests for the TV app.
What was hard
- Two processes write the same state files, the desktop app and the TV server. A whole-file save would silently wipe the other's changes: the desktop app left open all evening, then closed, would erase what the TV had recorded meanwhile. Every store now saves per key, under a cross-process lock, through a temporary file and a rename.
- Live light/dark switching in WPF: a shared brush is frozen as soon as a style referencing it is sealed, so the obvious design, changing its colour in place, throws on the first switch. Palettes are swapped whole, in place, and a test fails if the two palettes do not define exactly the same keys, because a missing one renders as nothing with the build still green.
- A subtitle retimer written in C# on ffsubsync's method: speech is found in the decoded audio by level, then one FFT cross-correlation per candidate frame rate catches both a fixed offset and a PAL speed-up. On a real 4K episode, a 3-second shift and a PAL speed were both found exactly, and a scrambled subtitle was refused.