Leyla 0.13.1
2026-10-25
Thirteen migrations, 0394 to 0407: 0394 (the faces role can be chosen), 0395 (media source triggers run once a statement, not once a row), 0397 (a recommendation slate's group as a column), 0398 (session attribution by slate item), 0399 (episodes by their series or season), 0400 (an index for every foreign key that names a bulk-deleted table), 0401 (the first-run claim code), 0402 (the plugins provider ids were last ranked for), 0403 (the plugin index's sequence), 0404 (the revision an account's recommendation evidence was published at), 0405 (what a training example's check read), 0406 (subtitle choices made by hand) and 0407 (a CPU encoder's self-test speed from what it cost).
After upgrading:
- Nothing needs doing. The first start applies the migrations in seconds.
- Files whose probe failed are probed once more after the upgrade, so their stored reason gets a stable code.
- A new install with no account prints a one-time setup code to its log and console. The web setup asks for it first, and the install guide, the Linux package's install message and the Windows installer say where to find it. Servers already set up are not affected.
- The identity pack now arrives on its own from the signed pack index (sequence 6). Settings, Server, Packs shows the pack Leyla publishes and what the server did with it.
- Titles scanned before the official metadata plugins finished installing are identified again on their own.
Playback
- A copy of the original can start at any segment and still cut where a full run does, through Leyla's patched ffmpeg (8.1.3-1,
-hls_grid_lead). Resuming a film far in no longer waits for a copy to read from the start; on our own server a resume went from about 3.4 s to 32 ms of server work. - A conversion started mid-file decodes only what its first picture needs, and a resumed conversion starts on the keyframe at or before the saved position.
- Delivery is planned: the link is judged on its worst moments, a dip is planned as if it lasts and planned again once the link is back, the server's upload is shared between viewers by deadline, and the administrator can see whose stream goes ahead of whose.
- A remote viewer nobody has measured gets the original with a way down, not a guessed conversion. When the server is busy converting for another viewer, the second viewer is told at Play and offered what fits now (SERVER_BUSY_FOR_ANOTHER_VIEWER); the first keeps their quality.
- The next episode is prepared during the credits only for a series the viewer goes on with, and its opening plays from memory, direct plays included. The phone and tablet app keeps the next episodes ready on Wi-Fi while charging, within a tenth of the free space.
- On mobile data: the apps say the connection costs data, show what a play costs before it starts, keep a monthly budget on the device, send surround as AAC stereo to a two-channel output, and keep what was fetched ahead for the viewer's return instead of throwing it away.
- Players built on ffmpeg's demuxer (the desktop app's libmpv, Kodi) get conversions shaped the way they read them, so picture and sound line up there too. The sync matrix now checks every cell that way as well.
- A subtitle or Off picked by hand is kept for that file and carried to the show's next episode, on the web and in the apps. A remembered audio track says where the choice came from.
- Transport streams (.ts, .mpg): AAC is converted for MP4 when copied, a stream whose clock jumps or rolls over is refused with its reason, a new .ts is indexed right after its probe, and one played before its index was read says how far the read is.
- A file that claims an impossible length (more than 31 days, or a header that lies) is refused with its reason, and a subtitle cue past the end no longer lengthens the film.
- Windows is a GPU platform: AMD AMF (H.264, HEVC, AV1 where the card has it) and Quick Sync through Direct3D 11. HDR is mapped on the AMD GPU where the self-test proves it works, otherwise on the CPU. HLS conversions run on Windows servers, which never worked before.
- An interlaced source is decoded on a GPU only where the GPU deinterlaces it.
- The Android player drops a frame that is too late instead of showing it, and recovers a video decoder that stops answering.
- A session's end forgets its link and audio offset readings on every path.
- A packaged copy whose session ended no longer reads two segments ahead.
Server
- Catalog writes from many jobs go in one transaction per library (group commit), and identification writes a library's titles in one step.
- Maintenance follows what changed instead of reading every row on every pass. On our own server, reads that took 4.9, 6.6 and 5.0 s now take 86, 150 and 190 ms, and an unchanged maintenance pass is skipped.
- Heavy work (catalog decoding, merges, password hashing, large Radarr and Sonarr answers, child process starts) runs off the server's request threads, so one busy job no longer stalls playback and browsing.
- The job queue gives its space back after a large burst. Our own server's queue table had grown to 360 MB for 683 rows.
- Bulk inserts of media sources cost per statement, not per row (30,000 rows took 11 to 13 s before).
- One library whose catalog cannot be read no longer takes the others down. It is shown as damaged (CATALOG_LIBRARY_DAMAGED) in browse, in Storage and in the apps, instead of looking empty.
- Findings say when a feature is on and produces nothing (FEATURE_SILENT, FEATURE_FAILING), and when an official metadata provider was turned off by hand (at info).
- Recommendations write only what changed and skip accounts that are already current.
- Chapters are found in two passes over a programme instead of a picture every ten seconds.
- A data directory on ZFS or btrfs is detected and shown in Server, Storage, and Leyla skips work the filesystem already does.
leyla-server gpu-checkproves a machine's GPUs with no database and no configuration and writes one report a tester can send.- Listing libraries reads the libraries and their roots in one statement.
- Home skips the up-next refresh when nothing changed, and Continue on a series reads the account's watch state once per episode (about 30% fewer buffers on a 37,000-file catalog).
- An autovacuum worker that a shutdown or a database clone stops is no longer logged as an ERROR from the bundled Postgres.
Security
- The first-run setup needs the one-time claim code; before, the first caller became the administrator.
- Plugin and licence signatures are checked strictly, a licence refresh must be newer than the token it replaces, and an older plugin index is refused once a newer one was seen.
- A request body is read at a pace or the request ends, a new token takes its address's request credit while it runs, and sign-in and PIN tries are counted before they are judged, so guesses sent at once all count toward the lockout.
- Plugins cannot reach private addresses through a public name. DLNA renderers are held to the machine that described them and share one sign-in. Images over 64 megapixels, NFO entity expansion, oversized answers from Radarr and Sonarr, and links to folders that hold the library are refused.
- Backup set folders are created readable only by the account Leyla runs as.
- Every error answer carries a stable code and a correlation id.
Web
- The first setup step asks for the setup code.
- The player loads the segment bank and Cast only when a session needs them, which keeps the player's download small.
- Schedules says what each background loop last did.
Apps
- The Android release build no longer hangs on the splash screen (0.13.0's APK did). Android targets API 37, asks for the home network, and offers Play on the lock screen only while the player is in front.
- The Connect screen says once when the local network blocks a home address.
- Resting the mouse on a poster previews the title, as on the web.
- mDNS discovery no longer crashes the app on networks that refuse it.
- The iOS build compiles again (AirPlay picker).
Tools and packaging
- Every server artifact (Docker amd64 and arm64, the .deb and .rpm on seven distributions, the Windows installer) boots, scans, plays and converts on its own platform in CI before it ships, and the release APK boots on a phone and a Google TV emulator.
- The Linux packages, the Windows build and the encode helper ship the same patched ffmpeg as the image.
- The backup rehearsal restores into a scratch cluster, not the live one.
- The performance budgets and query-count limits were measured again on a quiet test server and every one that came out lower was lowered. The scale test issues its setup code on the server's own database pool, and the resumed copy test asks for the resume segment, as a player does. The worker wake test counts the statements the server sends on the wire, so other test databases being created and dropped no longer make it fail.
- The release checklist lists the Docker image, the Linux packages and the Windows server as separate items again.
Something missing or wrong here? Tell us.