Open beta Leyla is free until December 31, 2026. Preorder at founders’ prices

Download

Leyla 0.12.4

2026-10-17

Seventeen migrations, 0222 to 0238: 0222 (artwork and person photos indexed by file path), 0223 (bookkeeping writes no longer bump the recommendation inventory or raise a notification), 0224 (jobs wake the workers once per type per transaction), 0225 (each source's byte profile beside its keyframe index), 0226 (autovacuum at 5% dead rows on the three busiest tables), 0227 (an index for the subtitle search), 0228 (an index of recent watch activity), 0229 (titles with nothing playable found in one walk), 0230 (a title count kept on each person), 0231 (the set of titles with nothing playable kept per catalog change), 0232 (probes that find nothing playable fail with a stable code), 0233 (language tags with no two-letter form), 0234 (cover images and WebVTT tracks in probes), 0235 (metadata providers named by plugin file), 0236 (duplicate and unused indexes dropped, and an ANALYZE after migrations), 0237 (files an older prober failed are probed again) and 0238 (one rule for intro and credits markers).

After upgrading:

  • Turn the TMDB and fanart metadata plugins back on in Settings, Plugins if 0.12.3 turned them off ("signature no longer verifies"). 0.12.3 read the provider gateway in their permissions as a local host; 0.12.4 does not.
  • Update the plugins the card offers: tmdb-metadata 0.11.0 (a failed lookup is an error, never "nothing found"), fanart-metadata 0.6.1 and season-intro-detect 0.5.0.
  • Run a force refresh on titles that were matched to the wrong work, so the new answer checks apply and an emptied duplicate series is pruned.
  • The first hours do background work at low priority: the byte profile of every source is read with its next index walk, and files an older prober failed are probed again. Nothing needs doing.

Playback

  • Direct play first: a viewer whose link was never measured is no longer planned for a guessed 15 Mbit/s. [reach].remote_unmeasured_bandwidth_kbps is removed (a leftover key is ignored). A link reading belongs to the network it was measured on, and a stall lowers it for 15 minutes, not 6 hours.
  • Planner 0.25.0 to 0.28.0: on a measured link the planner takes the cheapest delivery that fits, checked against the source's peaks and the player's buffer: the file as it is, then a copy of only the streams being played, then the original picture with AAC sound, then a prepared version, and only then a conversion. Where a conversion is needed, the original picture is copied as the top rendition and lower renditions are made on demand on its keyframes, so a player steps down and climbs back without a gap in the sound.
  • GPU transcoding is first class on NVIDIA: decode, deinterlace, scale, HDR tone map and encode all run on the card, and HEVC or AV1 is made where the GPU proved it can and the client plays it. On a GTX 1060 a 4K HDR10 film converts to 1080p at 205 fps using half a CPU core. Intel and AMD pipelines are written but refused by the self-test until tested on real hardware. Settings, Transcoding shows the graphics devices in plain words.
  • Capacity is measured, not guessed: a new conversion past what the machine can run, or a title on a disk already reading as fast as it can, is refused at once with "The server is busy" or "This disk is busy" and Try again, so the viewers already watching never stall. Copies are cheaper (an eighth of a CPU slot, 40 MiB), paced to twice real time, and encoders nobody is watching pause. Settings, Storage shows each disk's read rate.
  • Starts are faster: a press of Play starts the session before the player has loaded, the next episode is prepared only once this one's picture is on screen, a converted resume decodes from its own instant (about a second of CPU saved), and a direct play holds 24 MB instead of 1 GB.
  • A decode error on sound the device declared asks once for AAC and names the stream (Firefox and E-AC-3), and the device's verdict now learns from it. A remux that only the sound needs says so.
  • A metadata answer about another work (a 114-minute film answered with a short of the same name) is not applied.

Library and server

  • A title with several files plays its best present file, not its oldest. A probe that finds nothing playable fails with a stable code (NO_VIDEO_STREAM, IMPOSSIBLE_DURATION, FILE_TRUNCATED). Cover images in a file are no longer read as video.
  • File names: extras folders, disc copies (BDMV, VIDEO_TS), files named movie.avi inside a titled folder, titles ending in a lone letter (Fast X) and years still to come are read correctly.
  • An emptied duplicate of a series hands its favourites, lists and hidden rows to the series it duplicated and is then removed.
  • Big catalogs browse with far less work: watch progress, the unwatched filter, people search, the grid's counts and Recently added read by index instead of the whole catalog (people search 184 ms to 1 ms on a 37,000-file catalog). The nightly recommendation pass walks only what changed.
  • Background work fits small machines: decodes run in a window sized by the CPU, a fingerprint is not queued twice, workers notice new jobs within 10 ms, and a file gone from disk is marked missing and its folder rescanned.
  • A plugin that does not load is not called, and one failing five times in a row pauses; an unreachable provider is a provider failure, not "nothing found". A refused plugin install answers 422 with the reason, an update this server would refuse is not offered, and a failed install no longer deletes the plugin file that was there before.
  • Leyla never answers 502 or 504 for an error of its own, so a proxy such as Cloudflare no longer replaces its message with an HTML page.
  • Backups: a set written by another Leyla version restores, a failed restore rehearsal makes the next set rehearsed, and the 0.12.3 rehearsal failure on requests approved in the same instant is fixed.
  • A full disk under the database is logged once and Leyla's loops back off; a Postgres restart no longer logs its normal FATAL lines as errors.
  • Findings whose condition cleared resolve on their own, the artwork nobody names is removed daily, and intro and credits markers shorter than 5 s or outside the expected place are dropped.

Web

  • Televisions: the remote stays on its row, Home lands on the hero's Play, Back goes Home instead of closing the app and puts the up-next card away, a page never opens on a text field, the player keeps to the title safe area, and pages work on sets older than Chromium 105. First paint on a TV is about 0.6 s sooner and scrolling poster grids is smoother.
  • Settings shows every knob in human units, saved as it changes, with Reset beside a changed one, and admin times read as today, yesterday or a date.
  • A page opened while the server is away says it is waiting instead of showing nothing; retries are spread out so a server coming back is not flooded.
  • Updating several plugins at once names each one's result.
  • Smaller fixes: the up-next card says Up next once, Autoplay next episode appears only when there is one, search no longer says a term is missing when it found results, Playback languages save as chosen, and the player chunk is smaller.

Android, TV and desktop apps (Flutter)

  • MKV files whose tracks come after their cues play on Android (media3 1.11.1); before, such files (78 of 37,442 in one library) played with no picture or sound.
  • The same faster starts as the web (session on Play press, next episode prepared after the first frame), recovery after a server restart on every screen, HEVC or AV1 originals topping a ladder on Android, and capacity refusals with Try again.
  • A stall on Android is no longer read as a pause, Restart at the end of a title starts at the beginning, and every app reports its real version (it said 0.1.0).

TV shell

  • The LG and Samsung shell checks the saved server while it waits instead of after, and comes up with focus on its screen.

Tools and CI

  • Performance budgets for a low-end machine (2 cores, 2 GB, slow disk) beside the large server's, a scale tier that counts the work each request does at a 37,000-file library's size, and a web download budget; budgets only go down.
  • wasmtime 49.0.3 (RUSTSEC-2026-0352 to 0364).
  • The apple workflow runs on push only once a Mac runner is registered.