Leyla 0.9.0
2026-10-09
Accounts and people
- A person can delete their own account from Your account (Delete account, then their password) on the web and in the app. Watching, history and devices go; the household's requests stay, shown as from "a former member" with the name taken off. The only administrator cannot delete themselves until someone else is one.
- Accounts carry one name. The separate display name is gone from every response, export and form.
- Invitations: Send again makes a new link and code, an invitation that was already sent again says so instead of minting a second live code, an accepted one opens its person, and several people can be invited in one dialog (a name typed twice is one invitation).
- The people list shows last seen, watching now, libraries, devices and state at a glance; library access, sign out and disable work on several people at once, ask with the count first, leave the administrator's own account and anyone already disabled out, and say how many were left alone. One page answers everything about one person: watching now, libraries, devices, recent playback, their requests, limits, playback defaults, shared screens and PIN, account and changes. Same in the app.
Requests
- A request has its own page, on the web and in the app, with the same words, steps and actions in both. The browse page asks for everything at once and provider pages are served from the cache and refreshed behind. Approve, Decline, Link, Retry and Withdraw hold the row until the newest answer is in, and a download's progress moves in place instead of dropping the page to a spinner.
- The admin Requests list asks for the newest 500 and says when older ones were left out; a person's page lists their own newest 50.
- A title counts as on the server by the id identification gave it as well as one its path named, so a film like Spider-Man: Brand New Day no longer shows as arriving beside its own library item. A film and a show with the same TMDB number no longer collide in Sonarr, Radarr and webhook matching.
Library and speed
- Library grids, search and browse stay cached for thirty minutes and follow a live
catalogtopic that says when a library's titles changed, so a scan, refresh, assign or delete shows in the grid at once (web and app). A library's first poster arrives in about 300 ms instead of 470 ms: the grid, its collections row and genre pills are asked for from the link before the page mounts. - Hovering a shelf warms code only; a title's play state, Watchlist and Like or Not for me are asked for on a press, with the title, so a sweep across a shelf no longer sends one request per poster and the verbs no longer appear a round trip after the page.
- A page opened directly (refresh, shared link, bookmark) asks for its data at boot alongside its code. The first bundle is smaller (entry 170.8 to 150.7 kB, vendor 326 to 300 kB): the QR encoder, the virtual list and the page loader's animation load only when used.
- Scanning: a file dropped loose into a root rescans that folder, not all 63,000 files under the root; a changed file rescans its folder; a gone file is marked missing only while its root still looks mounted, and a dropped share fails the batch once for a retry instead of thousands of one-file jobs. Two overlapping scans of one library no longer fail each other. A scan the database refused is offered again with a growing wait. A folder with a dot in its name is noticed. The staging dedupe that ran 21 to 29 minutes per watcher scan on our test server is gone.
- Background writes that changed nothing are no longer made: credits and external ids go in as one statement, people adoption, air dates and recommendation links are written only when they differ (millions of no-op row versions a week on our test server), the artwork idle pass waits for a change, and the subtitle orphan sweep keeps what its last read proved.
- Versions of one title that print the same label are told apart by bitrate, running time or Version N, never a path. A title's files and its ledger reach administrators only: the library page loses its Files tab and the title page is the viewer's for everyone.
Playback
- 131 MP4s whose edit list opens with an empty edit (a delay before the picture or the sound) are packaged in-process, with the delay applied as ffmpeg applies it, instead of handed to ffmpeg. The A/V sync matrix carries such a file through every route.
- Damaged Matroska files: a file whose Cues sit after its damage is indexed by them, a file without Cues gets its keyframes from a background walk of its blocks, a segment whose keyframe was lost to a hole no longer re-walks the file from its head (465 reads to 7), and a segment that lies wholly in a hole is served the next picture the file has instead of moving the session to ffmpeg. Hole fills are reported once per served segment and only on real damage.
- A new encoded session is answered before its first segment, with its start marked provisional and settled from the media playlist; the first frame on a transcode comes sooner. Session create reads its sources in parallel. Refusals from the packager carry stable
PACKAGING_*reason codes. - Home's up-next refresh waits its turn per account instead of failing behind an identify batch, and takes dirty rows with SKIP LOCKED.
- Player: an automatic skip says so first ("Skipping intro" with Watch intro and a countdown, then "Skipped intro" with Undo), survives the skip's own seek on a transcoded stream, and in a party only the host's Always skips. Loudness never routes the sound through Web Audio (it put the sound 34 to 120 ms behind the picture); where the browser will not apply a cut (iOS Safari) the reason says so. When hls.js cannot be fetched the player says playback could not start and offers Retry. A start that never showed a frame is recorded, counted and documented.
- The display probe runs once per browser, screen and probe version, remembers that it could not measure for a day, and never blocks play.
Administration
- Every admin section fits a phone: headed tables, the columns a daily look is for, less important columns dropping first, one heading per section, real buttons in each head. Libraries, a library's page, a title's page, sessions, problems, downloads, jobs, schedules, plugins, storage, settings, backups, licence, notifications, recommendations, import, about and the log were each reworked. Areas and sections are ranked by how often an operator opens them.
- Refused subtitles are listed per source with their reason and date and a Try again; a refusal is retried on its own when the file changes.
- The History page polls the server log only while that section is on screen. Sign out, Disable, Send again, Replace download, Turn on and Send a test each ask first and say why when refused.
- Inside a store TV app the licence page shows only status and where to manage it.
The apps
- Android: Google Play prep (compileSdk and targetSdk 36, no camera requirement, only the permissions the app uses, the offline transfer service handles Android 15's time limit), AGP 9.4, Kotlin 2.4, Gradle 9.8. iOS lists
_leyla._tcpso finding a server on the LAN works. - Home and a title page opened while the server is down start from that state and ask again by themselves when it is back. A keystore that does not answer (a Linux desktop without a secret service) is waited on once per run, and sign-out with the keystore down no longer brings the person back. Startup reads preferences, the token and the profile list together.
- Pushed pages have a back arrow; Back on a title that could not be found goes Home; a title that is gone says it may have been removed; Scan QR code is offered only where a camera works; the title page's verbs show in the light theme; My requests and a request's page keep scroll and focus across live events; X-Ray frames load over the shared HTTP/2 client; dates name the month; a cast settles its start from the media playlist; an Android direct-play resume starts at its resume point.
Server
- A background loop that panics (artwork prefetch, subtitle preparation, the migration retry) is logged and started again with a growing wait instead of staying dead until a restart. Two panics are fixed: a show name whose case forms differ in byte length ("İ"), and a plugin Retry-After past an hour.
- Outbound clients ignore proxy variables (a proxy bypassed the rebinding check); one client per target kind with the check in its resolver. Webhook refusals are recorded as refused and never retried.
- The worker reads queue pauses only when told they changed, a caught-up search-index look runs at most every 5 s, a heavy job finishing wakes the claim loop, and a held disk is a priority floor in the claim's index condition instead of a walk through the whole backlog.
- Recommendations: no identity fence on request paths or the nightly loop, 25-item reconcile transactions, merge locks that cannot deadlock with ingest, and a first access that no longer fails its replay.
- A plugin source refresh sends If-None-Match and takes a 304; the cached index row records the server version that wrote it (migration 0194). One winning provider id per title and provider (migrations 0192, 0193), a partial index for TMDB collections (0190), a subtitle styled-file index (0189), the catalog change trigger (0195) and nullable requesters (0196). All additive.
- The env-only
LEYLA_TITLE_EXPORTswitch andGET /api/v1/libraries/{id}/filesare removed.
Provider gateway, licence service, store and site
- Gateway: 8 s provider timeouts with the kept answer or a 504, the same ask in flight waited for rather than sent twice, stale-while-revalidate, equivalent asks sharing one cache entry (language kept for images and videos), one OMDb entry per title, fanart.tv misses kept a week, a bundle that cannot exceed its miss cap, malformed licence tokens refused with 402 and a misconfigured trusted key answering 503, and a warm-up that walks TMDB by vote count, survives bad pages and records why OMDb stopped it.
- Licence service: fewer D1 round trips, timeouts on Polar and SES, its own error pages, a cacheable public key, a subset font. Plugin store: ETag and 304 on the index, a bounded validator wait. Site: a privacy policy at /privacy and an account-deletion page at /delete-account, a Latin font subset (first paint 692 to 276 ms at phone width), the booth-notes button legible again, the admin paths named as the clients do, and the ticket's seat reads Living room.
Build and platform
- Rust 2024 edition and Rust 1.99 across the workspace, resolver 3, reqwest 0.13 with one rustls, Debian trixie for the runtime, the CI image and Leyla's ffmpeg (8.1.3), PostgreSQL 18.6 for the test database, sqlx-cli 0.9, Flutter 3.47.7 and JDK 25 in the CI image, checkout v7, setup-node v7, cache v6, vite 8.3, vitest 5 with @cloudflare/vitest-plugin 1.4, wrangler 4.149, Python 3.14 and torch 2.14 for the recommendation pack (whose packs no longer depend on the Python version).
- Every dependency held back from its newest version is written down with its reason.
Something missing or wrong here? Tell us.