Leyla 0.12.3
2026-10-14
Twenty-one migrations, 0201 to 0221 (there is no 0204): 0201 (a session records that its restart failed), 0202 and 0203 (recommendations resolve redirected titles and gather evidence incrementally), 0205 (the position a client read and when), 0206 (landmark fingerprints), 0207 (session outcome order), 0208 (per-season intro matches), 0209 and 0210 (artwork re-encoding and the old hash it replaces), 0211 (watch history), 0212 (subtitles served from the media), 0213 (titles whose every file failed probing), 0214 (jobs by scan, in order), 0215 (library changes announced to the watcher), 0216 (where a session's picture starts), 0217 and 0218 (Recently added refresh without locking), 0219 (a plugin waiting for an admin's approval), 0220 (a local five-day trial for a server that cannot reach the licence service) and 0221 (the library grid skips its unplayable check when no file failed).
After upgrading:
- Update two plugins in Settings, Plugins: season-intro-detect 0.5.0 and fanart-metadata 0.6.1 are published with this release. The old season-intro-detect no longer loads (the segment interface changed with landmark fingerprints) and says so on its card until it is updated.
- The first hours do background work, at low priority: episode audio is fingerprinted again (landmarks, about 1/12 the size), imported artwork is re-encoded to WebP one image at a time (old addresses redirect for a week), and the subtitle index is rebuilt, after which the old subtitle copies are deleted. Nothing needs doing; a big library just takes a while.
- Run a force refresh on a library to fix webm container labels and fanart ids that were wrong (a parser fix does not re-identify on its own).
- Backups are on by default now: daily, the newest 7 kept, in
./data/backups. Move the folder or switch them off in Settings, Backups. Backups also carry imported and hand-set artwork. - Unsigned plugin files in the plugins folder now register switched off until an admin turns them on.
Server and playback
- Playback sessions survive a server restart: the row, its stream token and its plan are kept, players wait the restart out and carry on, shutdown no longer waits for open responses (1 s), and the health check runs every second while starting, so a restart is several seconds shorter.
- Every ended session says what ended it (server restarted, could not continue, signed out), in the history and the sessions table.
- Audio is copied into the stream when the client plays the source's codec (5.1 AC-3 and E-AC-3, Opus, others); otherwise AAC. Every audio decision gives its reason. Planner 0.21.0 to 0.24.0.
- Subtitles cost no disk: an embedded text track is read from the video on demand, and an image subtitle (PGS, VobSub, DVB) the viewer picks is burned into the picture.
- Playback starts quicker: the first picture comes from a rung whose first segment is fast to make, then climbs; a restart no longer scales pictures it throws away; a copied HEVC is published as hvc1 and Dolby Vision 5 as dvh1; AV1 is packaged in-process; hardware decodes deinterlace on the device.
- Resume position: a heartbeat or stop that arrives late no longer moves the saved position or watch state back, the web player reports where the viewer really was, a start in a title's tail begins with the last segment, and a paused player stays paused across a seek or track switch.
- A file with no picture is refused with a plain sentence, a broken file fails with a stable code instead of "Something went wrong", a file cut short plays what it has, and a file with a preallocated zero tail ends where the media does.
- A box out of memory loses a stream, not the server; an ffmpeg killed from outside, or a full scratch disk, says so; a rewrite failing on a full disk is reported once per attempt.
- Scrub previews viewers looked at are kept on disk (Storage shows the cache and Clear), and the server looks ahead of a moving viewer.
- A crash or kill -9 no longer sends Leyla into a restart loop: a stale postmaster.pid or socket lock is cleared, and a crashed bundled Postgres restarts in-process.
- The idle reaper no longer trusts the wall clock across a jump (resume from suspend), and a session that has not heartbeated yet is young, not abandoned.
- Lists are faster: Watchlist, Favorites, Playlists and Collections look up posters one row at a time (a list of 295 took seconds), playlists page and reorder from a partly loaded list, Recently added is recomputed from the probed title's own rows, and a first scan of 260,000 files keeps the grid and Home answering.
- A malformed JSON body, wrong content type, bad query or path answers Leyla's error envelope; a request note is 1000 characters at most.
- Access control: playlists, subtitle assets and search keep to the caller's libraries, and marking a title watched in a library the caller may not open answers not found and writes nothing.
- A password change closes the other devices' sockets at once.
- Providers: a gateway or CDN answer is capped while it arrives, and a 200 that is not a JSON record is never cached.
- An unlinked server that cannot reach the licence service runs its five-day trial on its own clock.
- Postgres keeps its own WAL size instead of holding 1.1 GB on big machines; Cargo.lock and the ffmpeg 8.1.3 pin (subfile protocol enabled) are refreshed.
Library
- A library added after startup is watched at once; an inotify overflow rescans only the roots it names; a scan follows symbolic links safely and says which it skipped, and skips names that are not UTF-8.
- A library folder may not be
/,/proc,/sys,/dev, Leyla's own data folder or another library's folder (create and edit refuse it with a sentence). - A title whose every file failed probing is left out of the grid and out of Continue watching, Up next and Recently added until a file of it plays; Needs you lists the files with why, in plain words.
- S01E1071 is episode 1071, S01E05-E03 is episode 5, a Matroska file that stops is truncated rather than a drive error, MPEG-TS recordings probe, and a NUL byte in a probe failure no longer fails the batch.
- Missing-file findings ignore files another file still plays; storage-low is one finding per disk.
- Big scans: hot tables are analysed after a scan adds many rows, and a scan's activity row names its first twenty jobs.
Watch history
- Watched ticks and "4 of 10 watched" on posters in the web and Flutter apps, "Unwatched only" in library browsing and season lists, and My history (days, films, a day's episodes under their show, Remove from history) from the account menu.
- Import a Trakt or Letterboxd history; titles match the way search does, and the import is quick for thousands of shows.
TV, phone and apps
- A TV connects without typing: the LG, Samsung, Flutter TV and Roku apps list the Leyla servers on the network, or show a code and QR to sign in from a phone. A server is listed to a TV only from a network confirmed once. Announce on the home network says what it shares.
- Play on TV: a phone is a remote for the signed-in TVs on the account (web on LG and Samsung, Flutter on Android TV and Fire TV), and a TV's session is named "Leyla app on LG TV" or "Samsung TV".
- Flutter: the Administration screens are gone; an administrator gets Manage this server, which opens the web admin (a TV shows the address and a QR code).
- Linux: Play no longer crashes the app under a real locale (libmpv needs the C numeric locale).
- One Back leaves the player on Android TV and Fire TV; a Roku playback error says what kind and what to do, and Roku waits out a server restart; Android reports VP9, DTS and TrueHD when the device decodes them; iOS and desktop map HDR10 and HLG themselves.
- Offline: a prepared download no device fetched for 7 days is deleted (was 30).
Web admin
- The redesigned admin: the Server page starts with four areas and stays short; Library, People, History and Settings each show one view at a time; every table pages at 25. Settings is an index in groups.
- Settings, Backups: backups, restore and moving to new hardware in the app. Back up now, upload a set, restore with a copy of the current server kept first, and Move this server with a pairing code from the new server's first screen ("Moving from another Leyla?"), keeping the licence link. Restore swaps the database in a way that cannot lose data, and a restore killed midway says so.
- First-run setup has a Keep backups step (a folder on the database's disk or inside a library is warned about or refused).
- An administrator's Restart now exits 75, so systemd restarts it too.
- The jobs page stops counting at 10,000 per type and state.
Plugins
- What a plugin returns is checked before anything acts on it (NaN confidence, out-of-range segments), a plugin whose file no longer matches its signature is turned off, a plugin that no longer loads says so, a resolver's failure is recorded on the plugin, and a trickling response cannot hold a fetch.
- Segment matching: a season is matched again when its segment provider changes; a network logo at the start is not offered as an intro.
- fanart-metadata 0.6.1 uses a hinted TMDB id only after TMDB confirms the title and year. season-intro-detect 0.5.0 uses landmark fingerprints.
Subtitles and artwork
- Web: subtitle text colour, font, edge and position, kept clear of the control bar; offline copies can turn subtitles on; long lines wrap. Flutter has the same choices.
- Imported and oversized artwork is re-encoded to WebP in the background; Kodi still gets JPEG and PNG.
Accessibility and TV text
- Text size for the TV layout (Standard, Large, Larger, Largest) in Account; Read subtitles aloud on Linux (speech-dispatcher) and Windows (SAPI); badges are read as what they say; focus rings on chips, and the Flutter desktop player walks its controls in reading order. The EAA reports are brought up to date.
Tools, CI and store
- The licence service has
GET /v1/nearbyandPOST /v1/move; the release builds cache the Gradle and pub downloads and use IPv4; the LG package version counts one major ahead of Leyla; store listings say the app needs a Leyla server and your own films and shows. - Internal: the hostile-media breaker script and its tests, fingerprint, scrub-cache and backup test fixes, timing bounds loosened for a shared CI host, formatting and unused Flutter calls removed, and the build configuration.
Something missing or wrong here? Tell us.