Re-apply HA fork patches on upstream v12.0 #3

Merged
benvin merged 2139 commits from benvin/rebase-v12 into main 2026-09-12 12:48:36 +10:00
Member

Fork main still sat on a pre-10.11.0 upstream tree 2,119 commits behind, with 123 of its 206 commits being upstream backports and SharedVersion.cs hand-edited to claim 10.11.7. This rebuilds the fork from the v12.0 tag and re-ports only the HA work.

  • base the branch on upstream v12.0 (6c073e19dd)
  • re-port the transcode session store, HLS lease registration and lease-aware cleanup onto v12.0 code
  • re-port the scan-leader lease, PostgreSQL provider, DbMigrator, Helm chart and Woodpecker pipeline
  • target net10.0 and EF Core 10, regenerating the PostgreSQL migration against the v12.0 model
  • pin jellyfin-web to 12.0+deb12 in both Dockerfiles
Fork main still sat on a pre-10.11.0 upstream tree 2,119 commits behind, with 123 of its 206 commits being upstream backports and SharedVersion.cs hand-edited to claim 10.11.7. This rebuilds the fork from the v12.0 tag and re-ports only the HA work. - base the branch on upstream v12.0 (6c073e19dd) - re-port the transcode session store, HLS lease registration and lease-aware cleanup onto v12.0 code - re-port the scan-leader lease, PostgreSQL provider, DbMigrator, Helm chart and Woodpecker pipeline - target net10.0 and EF Core 10, regenerating the PostgreSQL migration against the v12.0 model - pin jellyfin-web to 12.0+deb12 in both Dockerfiles
unkin-agent added 990 commits 2026-09-12 00:06:03 +10:00
Without this change it's self healing after the 3rd cycle.

It also appears there may be an issue with this etag "skip if hash hasn't changed" for schedules direct functionality.... like it never will work. But out of scope here.

Also fixed Sonar gripes about code formatting
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es/
Backport: Fix/user manager collation
Fix inconsistent extradata generated by hevc_vaapi on AMD driver
Improve OriginalLanguage normalization and inheritance
Don't overwrite if identical.
Wrap the downloaded stream in an explicit await using block with
ConfigureAwait(false), matching the pattern already used in
LiveStreamHelper and similar callers. Also add ConfigureAwait(false)
to the ZipFile.ExtractToDirectoryAsync call.

Part of #2149
Update skiasharp monorepo
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Fix movie recommendations
Also now throws if the streams are no CanSeek.
Now only uses for the Length mismatch.
Update CI dependencies
Fix A/V desync when resuming HLS with video transcode + audio copy
Seeks to beginning of streams if CanSeek is true.
Added remarks about stream position.
Add test coverage for short-reads.
Fix fast-path tests to actually test the fast path.
Also fix class comment.
Add new viewtypes options
Add a collection API for `Included In` feature
Wrap the downloaded stream in an explicit await using block with
ConfigureAwait(false), matching the pattern already used in
LiveStreamHelper and similar callers. Also add ConfigureAwait(false)
to the ZipFile.ExtractToDirectoryAsync call.

Part of #2149
Use fast paths only if we can TryGetBuffer on MemoryStream using segment's Array.
Reduce swap overhead for fast path B.
Avoid multiple virtcalls by memoizing the CanSeeks.
Overlap slow path stream async reads.
Use ConfigureAwait(false) in CollectionController
# Conflicts:
#	Emby.Server.Implementations/Library/LibraryManager.cs
#	Jellyfin.Server.Implementations/Item/PeopleRepository.cs
#	MediaBrowser.Controller/Library/ILibraryManager.cs
#	MediaBrowser.Controller/Persistence/IPeopleRepository.cs
We've been using SubtitleEdit to parse since 2021
https://github.com/jellyfin/jellyfin/pull/4984

I think it's time we start using it to write too
Remove NowPlayingQueueFullItems from session DTOs
Compare old file byte-by-byte to new stream
* Add support for VobSub subtitle streams

* update logic to determine separate extraction for VobSub subtitles

* simplify VobSub extraction logic and fix ffmpeg command

* Match `ExtractAllExtractableSubtitlesMKS` with `ExtractAllExtractableSubtitlesInternal` Matroska's VobSub option

* Add a comments clarify why MKS was used, and remove the redundant VobSub extension branch

* remove redundant VobSub format check

* fix type errors
Update swashbuckle-aspnetcore monorepo to 10.2.0
Fix similarity
* Clean up Schedules Direct error handling.

* Rename MaxImageDownloads2 to MaxImageDownloadsTrial per suggestion.

* Fix documentation.

* Fix incorrect 3XXX series codes.

* Rename SvcUnavailable to SvcOffline.

* Change 3XXX error code prefix from Svc to Service.
Fix folders being identified as seasons in mixed libraries
Only resolve symlinks on playback
Re-disable legacy authorization methods by default
* Write subtitles using SubtitleEdit

We've been using SubtitleEdit to parse since 2021
https://github.com/jellyfin/jellyfin/pull/4984

I think it's time we start using it to write too

* Clean up ConvertSubtitles

* Add JsonWriter back
Update dependency z440.atl.core to 7.15.3
Fix recently added episode links and posters
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Trim tags
Fix incorrect list capacity
Only default recursive to true if we have includeItemTypes
Make EncoderPreset non nullable
Extract attachments in one ffmpeg command when dumping
Update CI dependencies
Based on the README of the action
https://github.com/eps1lon/actions-label-merge-conflict

Filters based on activity type before starting the action
Fix season unknown for flat TV structures
Prefer subtitle extension over codec
Enforce parental filtering on additional endpoints
Update CI dependencies to v4.36.2
Fix playlist visibility
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/el/
Fix subtitle replacement not invalidating cache
Fix external data pruning on item deletion
Add lockhelper for UserManager

Original-merge: 39958ad9e5

Merged-by: Bond-009 <bond.009@outlook.com>

Backported-by: Bond_009 <bond.009@outlook.com>
Discover existing trickplay files on scan
Update issue template version to 10.11.11
Co-authored-by: Bond-009 <bond.009@outlook.com>
Fix xUnit1051 in UserManagerLockHelperTests
fix(dto): prefer PlaylistsFolder primary image for playlists tiles
Implement search providers
(cherry picked from commit 53f02a04ef7ff8f9d78c5f4e0924a0871b0e96fb)
(cherry picked from commit 40afd403a655ada6cfa30b577454bb766ea2099f)
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/el/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/el/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sr/
Refresh live TV channel image when remapped (alt #7843) (fixes #7834)
Media source handling fixes
Prefer local alternate versions when deduplicating linked children
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Fixes #1200
Add code assistance section to PR template
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hant_HK/
Update dotnet monorepo to v10.0.9
migrate local comic providers to server codebase
Fix duplicate trickplay images for interlaced videos
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/en_GB/
TheAudioDB returns the English album description in the base strDescription
field (no language suffix). The plugin previously only read strDescriptionEN,
which is absent from the API response, so the Overview/Description field
stayed empty for English (and any other language for which no localized
strDescription<LANG> exists). Mirror the fallback already applied to
AudioDbArtistProvider in #16606 and add the missing strDescription property
to the Album DTO.

Fixes #17080
Fix CleanName and CleanValue refresh
Assign correct season info to new episodes
Fix duplicate key collision
Update Microsoft to 10.0.9
Fix AudioDb album description not displayed for English (mirror of #16606)
Co-authored-by: Bond-009 <bond.009@outlook.com>
ComicImageProvider is the last user of SharpCompress after this PR
Update swashbuckle-aspnetcore monorepo to 10.2.1
Add support for background images and episode thumbnails from XMLTV
Update polly monorepo to 8.7.0
Fix AlbumIds filtering by Name instead of by Id
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es_AR/
Replace usage of SharpCompress
Update dependency Serilog.Settings.Configuration to 10.0.1
Update dependency SharpCompress to 0.49.1
https://learn.microsoft.com/en-us/dotnet/standard/native-interop/best-practices
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/kn/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/id/
Resolve GuideManager conflict by keeping LiveTvChannelImageHelper so
channel icons re-fetch on every guide refresh, including when the URL
is unchanged.
Update dependency SharpFuzz to 2.3.0
Fetch TV Shows creators from TMDB
Extend TranscodingReason reporting
improve book resolution from filename
Follow native interoperability best practices
Fix episode air date offset after initial scan
Fix series year lost during name parsing
Fixed "Deleting media that is still being watched in SyncPlay results in errors"
GET /Trailers is a thin alias for GET /Items with includeItemTypes=Trailer;
it just forwards to the injected ItemsController. Per the PR review the agreed
direction is to deprecate it rather than keep maintaining the delegation.

Mark the action [Obsolete] so it is flagged as deprecated in the OpenAPI spec;
clients should use the GetItems operation with includeItemTypes=Trailer instead.

Re #17065
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt_PT/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sl/
GetProgressiveAudioFullCommandLine applied the libopus-only sample rate
quantization to every codec except Opus, inverting the intended guard.
A requested rate such as 44100 Hz was therefore snapped to 48000 Hz for
AAC/MP3/FLAC, while Opus (which actually requires the quantization) was
skipped entirely.

Apply the quantization only when the output codec is Opus, and pass the
requested sample rate through unchanged for all other codecs.

Fixes #17026

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Deprecate the redundant /Trailers endpoint
Fix audio sample rate forced to 48 kHz for non-Opus codecs
Fix Identify returning wrong results
The FixIncorrectOwnerIdRelationships migration deletes all duplicate
items in a single DeleteItemsUnsafeFast -> DeleteItem(ids) call. Inside
DeleteItem, the owned-extras lookup used a raw HashSet.Contains, which EF
inlines as one SQL variable per id and overflows SQLite's variable limit
on large libraries. Use WhereOneOrMany so the id set is bound as a single
json_each parameter, like the rest of the method, making bulk deletes
work for unlimited library sizes.
After resolving duplicates the migration deleted all items in one silent
pass (per-id GetItemById plus a single DeleteItemsUnsafeFast), which looks
hung for minutes on large libraries. Delete in batches of 500 and log
progress per batch, which also avoids one oversized delete transaction.
Restyle the startup/migration holding page to match the Jellyfin dark theme,
with the inline wordmark logo, a gradient spinner and a recolored startup log
tree, and move the Morestachio template rendering into a reusable
StartupUiRenderer.

Add a curated, non-identifying "current activity" line to the always-visible
header (for example "Initializing server" or "Running migration X of Y"),
reported from the startup flow and the migration service so it never leaks
server details to unauthenticated clients. Move the log download into a
"Download logs" link in the log panel header, and show only the header, with
no log hints, to non-local clients.
Order the startup log oldest-to-newest inside a height-bounded panel that
scrolls internally and never extends past the bottom of the window. Refresh it
with a background fetch that swaps the log list in place instead of reloading
the whole page, preserving the user's scroll position and only following to the
bottom when they are already there. A full page reload now happens only on the
final transition to the running server or to the error state.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/en_US/
This leaks additional information publicly, and is not really
necessary/useful.
Prevents raw ISO-639-2 values (e.g. "Greek, Modern (1453-)" from cluttering the audio and subtitle display names by truncating them at the first comma or semicolon ("Greek"). Applies to MediaStreamRepository and ProbeResultNormalizer.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/az/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sk/
When the server finishes starting, show "Jellyfin started successfully" with a
5-second "Redirecting in N…" countdown and a Cancel button instead of reloading
immediately. Cancel stops the countdown and the background refresh so the
startup output can be reviewed, and offers a "Continue to Jellyfin" button to
reload manually. The buttons use the web client's emby-button styling.

Also drop the transitional "Applying migrations" activity: it only showed
briefly while the pending migration set was read, or for the whole step when
nothing was pending, so startup now goes from "Preparing migrations" straight
into "Running migration X of Y".
Fix too many SQL variables in DeleteItem for large batch deletes
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ko/
Added static method GetBaseItemKindsForCollectionType in ItemsController (moved from ContentFolderImageProvider to be shared)

Added AudioBook to GetRepresentativeItemTypes for CollectionType.books for consistency

Added GetBooks to GetUserItems for CollectionType.books which gets BaseItemKind.Book and BaseItemKind.AudioBook

Move GetBaseItemKindsForCollectionType to DtoExtensions

Cleaned up the missing null checks and used new collection expressions.
Associate Person to Book and AudioBook for related items.
The request path is not validated to a valid path and could allow escaping the transcode path and downloading of any arbitrary file in GetHlsPlaylistLegacy .

GetHlsAudioSegmentLegacy and GetHlsVideoSegmentLegacy have the same issue, and are NOT behind an Authorize so they are publicly exploitable.

Added a ValidateTranscodePath that verifies that requested file paths start with the transcode path setting. Also ensure that all filename comparisons are OrdinalIgnoreCase because we might be running on a filesystem where filename-casing doesn't have to match. Switched from InvariantCulture because the underlying OS filename comparisons are always byte-wise (with case insensitivity here).

Fixed a similar issue in GetPluginImage
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/gl/
Don't run heavy DB tasks while scan is running
Fix local Comic book plugin registration
Fix Live TV tuner not releasing
Fix localization lookup
Fix embedded lyrics not updating on replace all refresh
Revamp startup UI for visual style and usability
Use Convert.ToHexStringLower for Schedules Direct password hash
Live TV: re-fetch channel icons on guide refresh
Reject unsafe plugin package names in installer
Batch duplicate-cleanup deletes in merge migrations
Remove orphaned people
Update CI dependencies
Update dependency Microsoft.NET.Test.Sdk to 18.7.0
Update swashbuckle-aspnetcore monorepo to 10.2.3
Update actions/checkout action to v7
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sw/
Also fixed a sibling directory that matches the prefix.
Move image refresh logic from PeopleValidator (which runs during library
scans) into PeopleValidationTask (the "Refresh People" scheduled task).
This keeps library scans fast while ensuring the scheduled task fetches
missing images from remote providers like TMDB.

People missing a Primary image or overview get refreshed with
MetadataRefreshMode.Default instead of ValidationOnly, with a 30-day
cooldown to avoid hammering providers for people they have no data for.

Fixes jellyfin#8103
Instead of loading all people names and checking each one in memory,
query the database directly for Person items that need refresh:
- Missing primary image OR missing overview
- Not refreshed within the last 30 days

This reduces the operation from N+1 queries (1 for all names + 1 per
person to load) to a single filtered query returning only the IDs that
need work.
Instead of re-checking image/overview on the domain object after loading,
project the values directly from the database query as part of the
anonymous type selection. This avoids redundant checks since the DB
already has this information.
Address review feedback:
- Replace typeof(Person).FullName with IItemTypeLookup.BaseItemKindNames
- Replace foreach+ToListAsync with PartitionEagerAsync for batched
  iteration with built-in progress reporting
- Check HasImage/HasOverview on the loaded domain Person object
  instead of projecting from the DB query
Fix Book collections speed issues
Rework bitrate reporting
When a client polls the HLS playlist (e.g. live.m3u8) after a live stream has
been disposed because its consumer count dropped to zero,
GetLiveStreamWithDirectStreamProvider returns a null MediaSource. The live
branch of GetStreamingState then dereferenced it unconditionally, throwing a
NullReferenceException and returning HTTP 500 for every poll until the client
re-opens the stream. Guard against the null MediaSource and throw
ResourceNotFoundException so the request returns 404 instead of crashing.

Fixes #17009

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Use Enumerable.LeftJoin for activity log user query
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sq/
Fix NullReferenceException in GetStreamingState for closed live streams
Fix Swedish rating
Close sessions for lost WebSockets to prevent zombie SyncPlay groups
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/si/
Fixes #17195
Adds a regression test
Three index bugs in PlayQueueManager, two of which leave
PlayingItemIndex out of bounds, making every subsequent Buffering/Ready
request throw and leaving the group unusable until it empties:

- RemoveFromPlaylist did not compensate for removed items preceding the
  playing item: removing the playing item together with earlier items
  could select the wrong item or crash with an out-of-bounds index.
- Next/Previous on an empty playlist with RepeatOne/RepeatAll reported
  success or set PlayingItemIndex to 0 on an empty list, crashing
  downstream in Group and corrupting the index.
- SetPlayingItemByIndex accepted an index equal to the playlist count
  (latent off-by-one, callers currently pre-validate).
Update Microsoft to 5.6.0
Fix folder view
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/da/
DateTime.TryParse without an IFormatProvider falls back to the current
thread culture, so the same string can parse differently (or fail)
depending on the server's locale. None of these call sites deal with
user-entered text - they parse dates that come from filenames, an
HTTP header, ffprobe metadata and values the app itself wrote to the
auth database - so InvariantCulture is the correct provider everywhere
here.

Fixes the S6580 / CA1305 warnings on these call sites.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hant_HK/
Fixes #17195
Adds a regression test
Fix ghost entries when deleting library paths
Fix parental rating lookup for multi-rating entries
Fixes for multi version handling
Use InvariantCulture when parsing machine-generated dates
Don't throw on logout if session does not exist
Fix actor images not displayed until clicked
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/da/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hant_HK/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ja/
Adds tvdb alias for tvdbid and imdb alias for imdbid.

It also fixes an issue where tmdb alias was being ignored
if it was followed by something like "tmdbidfoo".
The same issue prevented imdb pattern matching from
working, if it was followed by something like "imdbidfoo".

It also allows for detecting the first matching occurence,
whether it was an alias or not.

Finally, it ignores attributes with values consisting of only whitespaces.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/is/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/is/
ClearProfileImageAsync removed the ProfileImage instance attached to the
passed-in User, but that instance can carry a stale, never-persisted
(temporary) key because UpdateUserAsync creates the persisted image on a
separately loaded entity and never copies the generated key back.
Removing that detached entity on a fresh DbContext made EF Core throw
InvalidOperationException ('ImageInfo.Id has a temporary value'), leaving
the profile image impossible to delete or replace.

Load the tracked, persisted user and remove its actual ProfileImage,
matching the removal pattern already used in UpdateUserAsync. Adds
regression tests covering the temporary-key case and the no-image no-op
(the first fails before this change and passes after).

Fixes #13137

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Explicitly set StandardErrorEncoding and StandardOutputEncoding to
Encoding.UTF8 when invoking the FFmpeg subprocess.

This prevents log encoding issues and character corruption on Windows
environments that default to non-UTF8 ANSI code pages.

This fixes garbled metadata and font names in the FFmpeg logs.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
ExecuteUpdateAsync bypasses the EF change tracker, so the user entity
returned by AuthenticateUser still carried the old LastLoginDate and
LastActivityDate. SessionManager.LogSessionActivity then saved that
stale entity in full, reverting LastLoginDate (usually to null)
milliseconds after every login. Setting the properties on the entity
keeps the follow-up save consistent and lets the 60-second activity
guard skip the redundant write during login.

Fixes #17301
Format3DParser drops the last character of the final path token: when
IndexOfAny finds no more delimiters, the slice is taken with
'index = path.Length - 1', so e.g. "hsbs" is compared as "hsb" and
never matches any rule.

File paths are unaffected because the extension is always the final
token, but directory based media have no extension. For DVD/BluRay
folder rips (BaseVideoResolver parses the folder path via
Set3DFormat), a trailing 3D tag such as
"Gravity (2013) 3d hsbs/BDMV" is silently ignored and Video3DFormat
is never set.

This is a regression from 42a2cc174 which replaced the string.Split
based FlagParser with span slicing; the Split implementation kept the
final token intact.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/he/
The CUDA hwcontext in FFmpeg 8.1 has added support for 10bit
fully-planar formats, but few CUDA filters support them.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
SubtitleEncoder.ConvertSubtitles parsed subtitles with libse's static
Subtitle.Parse, which iterates a statically cached list of shared
SubtitleFormat instances. Format parsers keep mutable per-parse state on
the instance, so concurrent subtitle requests corrupted each other's
output (cues mixed across streams and languages, truncated files) or
failed with NullReferenceException when format detection broke down and
Subtitle.Parse returned null.

Parse through the injected ISubtitleParser instead. SubtitleEditParser
instantiates a fresh format parser per call, so requests no longer share
state. Its Parse method now returns the libse Subtitle directly (the
SubtitleTrackInfo flattening was unused since the SubtitleEdit writer
rework) so the writers keep full fidelity such as ASS styling.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es_419/
A single row with malformed KeyframeTicks JSON (e.g. a truncated array
from an interrupted write) currently aborts the entire backup, because
the try/catch in BackupService.CreateBackupAsync only wraps
serialization of an already-materialized entity, not the enumeration
itself. EF Core throws JsonReaderException from MoveNextAsync() while
materializing the corrupt row, which propagates past that catch block.

Switch to manual enumerator iteration so MoveNextAsync() failures can
be caught per-row, logged as a warning identifying the affected table,
and skipped, allowing the remaining rows and the rest of the backup to
complete.

Fixes #17216

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
BaseItemDto.Genres, .Tags, and .ProviderIds are plain auto-properties with
no default initializer, so they deserialize to null when a client omits
them from a partial POST /Items/{itemId} body. The OpenAPI spec documents
every BaseItemDto field as optional, but ItemUpdateController.UpdateItem
fed these three properties straight into Distinct()/Select()/ToList()
without a null check, so a request that (for example) only sets Tags
throws ArgumentNullException("source") once it reaches the unguarded
Genres line, before Tags is even processed.

Guard all three assignments with the same "if (request.X is not null)"
pattern already used for the neighboring Studios/Taglines/ProductionLocations
fields in this method, so omitted fields are left unchanged instead of
crashing the request.

Adds ItemUpdateControllerTests covering the reported repro (only Tags
supplied) and a companion case asserting existing Genres/ProviderIds are
preserved when omitted from the payload.

Signed-off-by: zerafachris <christopher.zerafa@blocklabs.io>
Also added a test to exercise it, which is perhaps silly but convenient.
Fix path transversal exposure in Plugins
Remove episode image override hack
Update season and episode SeriesName when renaming a series
Fix Identify returning wrong images
Fix format negotiation in hybrid SW decode and CUDA tonemap pipeline
Remove PlaybackPositionTicks from MediaSourceInfo
Fix potential garbled text in FFmpeg logs on Windows
* show production companies instead of networks

* keep both production companies and networks

* fix whitespace

* fix nullable type

* networks first, then production companies
* Prevent ffmpeg from hanging extracting subtitles
Add `RunSubtitleExtractionProcess` to unify the external
_ffmpeg_ process handling and error management.
Add a `-nostdin` flag that prevents _ffmpeg_ from reading from
_stdin_ and blocking on an inherited stdin handle (e.g. when
Jellyfin runs as a service under NSSM), which otherwise hangs
subtitle extraction forever when _ffmpeg_ blocks on any
keyboard-interaction read until the timeout (30 minutes).
Close the redirected _stdin_ to ensure immediage EOF.
Drain the _stderr_ to a string and log it, to ensure we don't block
the _ffmpeg_ process on errors that exceed the pipe length.
Pass `-y` to _ffmpeg_ to ensure it overwrites any existing output file
without prompting for confirmation.

* Address review comments
Make sure we always drain stderr.
Make sure the timeout also honors the cancellationToken.
Make sure when we get cancelled we don't log it as a ffmpeg error.
This change does not affect the keyframe only mode.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hant/
Per review feedback from cvium: failing to read/backup an entity due to
corrupt underlying data is a significant event that should be surfaced
as an error, not silently downgraded to a warning.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Add XML docs to small entity interfaces and remove CS1591 suppressions
Fix Resume query performance
Normalize invalid PTS from containers for Trickplay generation
Keep authenticated user entity in sync with persisted login timestamps
normalize common formats for creator names in OPF data
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hr/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Fix linked whitespace after image badges in `README.md`
Remove libpostproc check for ffmpeg version validation
Update actions/setup-python action to v7
Fix artists being displayed with albums
Add TVDB provider ID support for movies
Sort trailers for TV Shows
Add additional attribute aliases and improve attribute detection
Fix race condition in concurrent subtitle conversion
Make RequestHelpers.GetOrderBy generic and reuse it in ActivityLogController
Fix: Fetch the correct row matching the most up to date file
Fix profile image being impossible to clear when its in-memory key is temporary
Removed comments explaining error handling for malformed JSON during backup.
Feat (fix) - Skip reprocessing program information when importing XMLTV EPG data
extract page count from archives and PDFs
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/is/
Exempt people from the allowed tags visibility check
# Conflicts:
#	Jellyfin.Api/Controllers/HlsSegmentController.cs
#	Jellyfin.Api/Controllers/PluginsController.cs
Addresses review feedback from @Bond-009 on PR #17370: the test helper
InvokeUpdateItem was invoking the private UpdateItem(BaseItemDto, BaseItem)
method via reflection. Jellyfin.Api.csproj already grants
InternalsVisibleTo("Jellyfin.Api.Tests"), so the method is changed to
internal and the test now calls it directly, removing the
GetMethod/Invoke boilerplate.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
BackupServiceTests rooted its temp directory under Path.GetTempPath(), which
on GitHub-hosted windows-latest runners resolves to the constrained system C:
drive. BackupService.CreateBackupAsync requires 5GiB free at the backup path
before starting, and the C: drive's free temp space can dip below that,
failing CreateBackupAsync_WithCorruptKeyframeDataRow_SkipsRowAndCompletesBackup
even though the fix itself is correct. Rooting the test directory under
AppContext.BaseDirectory keeps it on the same (much larger) drive as the repo
checkout on all platforms, without touching the real BackupService free-space
check.
Add XML docs to small model enums and remove CS1591 suppressions
Update actions/checkout action to v7.0.1
Update dependency SharpCompress to 0.50.0
fix: skip corrupt KeyframeData rows during full system backup
Backport and extend path traversal fixes
* Fix subtitle encoding

* Add short-circuit

* Use IsTextFormat

* Update MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs

Co-authored-by: Bond-009 <bond.009@outlook.com>

---------

Co-authored-by: Bond-009 <bond.009@outlook.com>
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lv/
Truncate ISO-639-2 language display names at first delimiter
Prevent unauthenticated re-run of the startup wizard on misconfiguration
fix: don't throw ArgumentNullException on partial UpdateItem payloads (#17366)
Improve language filters to only fetch language codes that match the requested items/libraries (follow up to #9787)
Match VobSub MKS subtitle profiles by container
A query sorted by a user-dependent key (PlayCount, IsFavoriteOrLiked,
DatePlayed, IsPlayed, IsUnplayed) but carrying no User caused a
NullReferenceException inside UserDataManager.GetUserData, surfacing as
"Failed to compare two elements in the array" (InvalidOperationException
wrapping the NRE from the LINQ sort) and 500-ing the /Items request.

Root cause: LibraryManager.GetComparer assigned comparer.User = user
without a null guard, so PlayCountComparer.GetValue called
UserDataManager.GetUserData(null, item), dereferencing user.Id.

Two-part fix:
- LibraryManager.GetComparer: when user is null and the sort key requires a
  user (IUserBaseItemComparer), substitute the SortName comparer so the
  result stays deterministic instead of 500-ing. SortName is the project's
  canonical tiebreaker (ItemsController injects it for album-by-artist).
- UserDataManager.GetUserData: ArgumentNullException.ThrowIfNull(user) as
  defense in depth (matches the existing guards on the SaveUserData
  overloads in the same file). On master this overload was rewritten to use
  ResolveUserDataRow, so the NRE dereferences user.Id rather than
  user.InternalId as on the release branch — same bug, different line.

Also fixes DateLastMediaAddedComparer being statically mis-tagged as
IUserBaseItemComparer: its GetDate is static and never reads User, so it
does not need one. Without this, the SortName fallback above would wrongly
engage for DateLastContentAdded on anonymous queries (returning SortName
order instead of date order). Re-tagged to IBaseItemComparer and dropped the
unused User/UserManager/UserDataManager properties.

Tests:
- UserDataManagerTests.GetUserData_NullUser_ThrowsArgumentNullException:
  reproduces the crash (NRE -> now ArgumentNullException). Added to master's
  existing UserDataManagerTests.
- LibraryManagerSortTests.Sort_UserDependentKey_NullUser_FallsBackToSortNameWithoutThrowing:
  Sort with a user-dependent key + null user no longer throws and returns
  items ordered by the SortName fallback (direction preserved).
- LibraryManagerSortTests.Sort_DateLastContentAdded_NullUser_OrdersByDateNotSortName:
  guards that DateLastContentAdded still sorts by date with no user (fixture
  chosen so date-desc and SortName-desc disagree, so a revert is caught).

Full Jellyfin.Server.Implementations.Tests suite: 642 passed, 0 failed.

Fixes #17393
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Some ffmpeg build might output extremely long traces for its banner that consume all pipe capacity and hangs the process. We have to drain both streams regardless on which one we actually read.
perf: avoid unnecessary list allocation in CheckForIdlePlayback
Drain stderr and stdout concurrently for encoder validation
Check the "name" tag for audio/subtitle probe to fix MP4 not showing correctly - Fixes issue #17418
Apply cleaning logic on ForcedSortName
Fix play queue index handling in SyncPlay
Skip ComicInfo parsing if none exists
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hi/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Avoid NRE when sorting by user-dependent keys without a user
remove ogg from video extensions since it should only be used for audio
Fix incorrect year on local trailers
Fix hyphenated numbers in episode titles parsed as multi-episodes
Update dependency SharpCompress to 0.50.1
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/is/
Reduce correlated subqueries to improve query performance
Fix series merging
Fix missing collection folder posters after initial scans.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lb/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/th/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lb/
Fix 3D format detection when the tag is the last token of the path
Update dependency FsCheck.Xunit.v3 to 3.3.4
Update danielpalme/ReportGenerator-GitHub-Action action to v5.5.11
Update actions/stale action to v11
Implement AudioDb artist search
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/oc/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Prevent FFmpeg's SIDX path from rewriting open-GOP boundary packet timestamps. HLS uses the media playlist for segment indexing and does not require the SIDX box.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Allow duplicate LinkedChildren for Playlists
Reevaluate pending migrations after each one instead of per stage
Queue person metadata refresh instead of blocking the item request and fix ItemCounts
Fix (Un)Played filter correctness and performance
Skip SIDX in fMP4 HLS segments
Fix storage info lookup for Windows
# Conflicts:
#	Jellyfin.Server.Implementations/Item/BaseItemRepository.QueryBuilding.cs
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Updated by "Remove blank strings" hook in Weblate.

Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/
# Conflicts:
#	src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/JellyfinDbModelSnapshot.cs
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Add Tmdb missing episode provider
Fix Live TV returning unreachable "server-local" streaming URLs to clients.
Fix video version links being read from stale serialised item data instead of the LinkedChildren table
Fix AdjacentTo being ignored on non-recursive item queries
Use CleanName when sorting by name
Allow client-rendered graphical subtitles during remux
Fix extras naming and version assignment
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nl/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nl/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ca/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nl/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hans/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/de/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es_AR/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es_MX/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es_419/
AddParts replaces _metadataProviders but left _metadataProviderCache
holding provider arrays from the previous registration. Invalidate the
cache so repeated AddParts calls cannot serve stale providers, and give
the previously uncalled ClearMetadataProviderCache its intended caller.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ar/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fr_CA/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fr/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/it/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sk/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sv/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/uk/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/it/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ko/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/is/
This is a nasty one. The failure mode is:

1. Request A started FFmpeg and waited for a segment.
2. Request B requested an earlier or far away segment.
3. Jellyfin thought FFmpeg should to restart at a different position.
4. Request B killed the existing transcoding job.
5. Killing that job cancelled the same token request A was using.
6. The cancellation produced http 500 to request A.

To fix this:

we lock transcoding job state changes and segment handling per playlist, and use a thread safe counter to track how many http responses are still using each job’s segments. A job is only stopped or replaced once that counter reaches zero.
`GetProgressiveAudioFullCommandLine` forced the raw PCM muxer and a bogus
sample rate whenever the audio encoder was `pcm_*`, regardless of the
container the client asked for. Two separate failures came out of it:

- `-ar ` + `state.BaseRequest.AudioBitRate` used a *bitrate* as a *sample
  rate*, and `AudioBitRate` is optional. When it is absent the argument
  degrades to a bare `-ar`, ffmpeg aborts with `Expected number for ar but
  found: -ar` / `Error opening output files: Invalid argument` (exit 234)
  and the request fails with HTTP 500. Every `GET /Audio/{id}/stream.wav`
  that does not carry an explicit `AudioBitRate` hits this.
  The sample rate was already being set correctly a few lines below from
  `OutputAudioSampleRate`, so the line is dropped rather than repaired.

- `-f s16le` overrode the muxer even for a real container. A request that
  did supply a bitrate (`/Audio/{id}/universal` passes
  `MaxStreamingBitrate`) survived the first bug but produced raw headerless
  samples served under an `audio/wav` content type, so clients saw a body
  with no RIFF header. The raw muxer is now only forced when the requested
  container is actually raw PCM, which keeps the I2S/MCU route from #10321
  working.

Also drop the `containerInternal = ".pcm"` assignment in
`StreamingHelpers.GetStreamingState`: it is written after
`state.OutputContainer` has already been read from the same variable and is
never read again, so it has no effect and only obscures where the output
container comes from.

Verified against ffmpeg 8.1.2 with a 96 kHz FLAC source: before, the wav
command line exits 234; after, it produces a valid `RIFF/WAVE` 48 kHz stereo
`pcm_s16le` file, while the raw `.pcm` route still yields exactly
2 s x 48000 x 2ch x 2 B = 384000 bytes of headerless samples.
Degrade ForceKeepAlive logs to debug
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ar/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
Only treat series and seasons as resumable folders
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
`GetItemValues` -- the shared path behind `/Artists`, `/AlbumArtists`, `/Genres`,
`/MusicGenres` and `/Studios` -- disabled the total record count whenever the
query carried no `Limit`:

    if (!filter.Limit.HasValue)
    {
        filter.EnableTotalRecordCount = false;
    }

A request without an explicit limit therefore came back with N entries in `Items`
and `TotalRecordCount = 0`. Clients that page on the reported total -- the
documented contract every other list endpoint honours -- read that as an empty
library. `/Items` and `/Persons` do not share this path and report the count
correctly, which is what makes the inconsistency visible from the outside.

Measured against master with a 62-track music library:

    GET /Artists?UserId=...              -> TotalRecordCount=0  Items=5
    GET /Artists?UserId=...&limit=100    -> TotalRecordCount=5  Items=5

Dropping the block costs nothing: `representativeIds` is materialised into a
`List<Guid>` a few lines below regardless, so `.Count` was already available and
the count is now reported from it. Callers that genuinely want to skip the count
still can -- `EnableTotalRecordCount = false` is honoured as before.

The block also mutated the caller's own query object, so a query instance reused
across calls silently lost its total after the first limitless one. That is
covered by a test as well.
# Conflicts:
#	Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
Update github/codeql-action action to v4.37.6
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/cs/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/da/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/et/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es/
Update dependency SharpCompress to 0.50.4
This reverts commit 372c1681d8.
Keep folder extras with the item that owns the folder
Revert "Refresh Live TV channel icons on every guide update."
Fix PCM audio transcoding to wav returning HTTP 500 and headerless output
Improve People deduplication, fix search and restrict ItemByName responses
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pl/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Parse ReplayGain album gain field
Makes the test O(log n)
Replace the O(n²)  array .First scan with a dictionary lookup
If left at Default,  sqlite3_enable_shared_cache is process-global, so a plugin enabling it makes these connections share a cache too.
Contention then surfaces as SQLITE_LOCKED ("database table is locked"), which the busy handler does not cover,  busy_timeout is skipped and the command fails at CommandTimeout instead.
Using ExecuteAndCapture (and the async version) requires something to manage the captured exception, which we don't do. Errors would be silently dropped and the writes/deletes treated as if they succeeded.
Since it uses ReaderWriterLockSlim, it gets tripped up if the transaction
is continued across an await boundary on a different thread.
This makes the deletion of BaseItemProviders, BaseItemImageInfos, and BaseItemMetadataFields happen in batch as  a contiguous block so the lock isn't held across items, just before the bulk SaveChanges.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/de/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hu/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
ImageHelper.GetNewImageSize passed the caller-supplied width/height straight
through to SkiaEncoder.EncodeImage, which allocates an SKImageInfo of exactly
that size. Nothing bounded those values against the source image, so a request
like Items/<id>/Images/Primary?width=23100&height=23100 made the server allocate
and resample a 23100x23100 surface from, say, a 600x336 poster: the reporter
measured 100% of a core for 10-15 minutes and 6-12 GB resident per request.
The item images endpoints do not require authentication, so any caller who knows
an item id can trigger this, and varying the size by one pixel misses the cache
every time.

Add DrawingUtils.ScaleDownToFit, which scales a size down uniformly until it
fits inside a bounding box and returns it unchanged if it already does, and
apply it in GetNewImageSize against the original image dimensions. Requests
that ask for more pixels than the source now get the source resolution back,
scaled to the requested aspect ratio. Downscaling paths are untouched, and
DrawingUtils.Resize keeps its existing behaviour for the transcoding callers in
EncodingJobInfo and StreamInfo, which legitimately size video output.
ResizeFill already refused to upscale; this makes width/height consistent
with fillWidth/fillHeight.

Fixes #17056.
GetBaseItemDtos already batch fetches user data, child counts, played counts
and artists before its per item loop, but AttachPeople still ran one GetPeople
query per item. Rendering a page of items (for example a large playlist) fired
one extra query per row.

Add GetPeopleByItems to IPeopleRepository, which reads every requested item in a
single query over the people mapping table and returns full PersonInfo (role,
type and sort order) grouped by item id. GetBaseItemDtos prefetches this once
when the People field is requested and passes it into AttachPeople, which reads
from the batch instead of querying per item. The single item GetBaseItemDto path
keeps its existing per item behaviour when no batch is supplied.

Adds a DtoService test asserting people resolve from the batch and the per item
GetPeople is never called.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
Fix concurrent ffmpeg segment racing
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/tr/
Switch SQLite connection Cache to Private
Speed up UpdateOrInsertItems for related information
Fix captured (and discarded) Execute exceptions
Fix disabled plugins being re-enabled on restart
Delete old related info in bulk as late as possible in UpdateOrInsertItems
Clear metadata provider cache when provider parts are registered
Fix by-name endpoints reporting TotalRecordCount=0 next to a populated Items array
fix(images): disambiguate progress overlay cache keys
Batch people lookups when building item DTOs
Add warning that PessimisticLockBehavior is unsafe
Browsing a page of videos with the MediaSourceCount field ran one alternate
version query per item, each opening a fresh DbContext. On a large library that
turned a single page into hundreds of sequential round trips and made the Items
endpoint take tens of seconds while holding a request thread the whole time.

Detect which videos own alternate versions once per page with a single query,
mirroring the existing people batch. Videos absent from that set have a single
media source, so the per item lookups are skipped for the common case. Behavior
is unchanged: a video with no alternates already resolved to a count of one.

Adds a regression test asserting the count resolves from the batch and the per
item lookups are never called.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/tr/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/vi/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/eu/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/tr/
Rename GetItemsWithAlternateVersions to GetItemIdsWithAlternateVersions
across the interfaces and implementations since it returns ids. Return
the hashset straight from the query instead of materializing an array
first. Rename the DtoService guard to mayHaveAlternateVersions and
invert it so the computed path is the explicit case. Assert the media
source count value in the batch skip test and add a test covering an
item that is in the returned set still resolving to the correct count.
Filter the parent ids with the WhereOneOrMany query helper instead of a
raw Contains so the id list is wrapped in EF.Parameter and EF Core reuses
one compiled query plan across calls, matching how the rest of the item
queries build their id filters.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt_BR/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ru/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/vi/
Cleanup and simplify query helpers
Co-authored-by: Tim Eisele <Tim_Eisele@web.de>
Stop image endpoints from upscaling beyond the source resolution
fix: correct IsAiring negation to exclude airing items
fix: bound remote provider pagination
Fix assemblies
Fix PersonTypes not applied when filtering by person
Bugfix: #17547 | Batching MediaSourceCount into one call
Fix master build
Fix missing ItemRemoved events and search fallback after access filtering
Fix EF core designer drifts
Update dependency z440.atl.core to 7.16.0
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/de/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ms/
Fix FindArtists
Update Microsoft to 10.0.11
DE localization for Artists was changed in localization commit 21fec95b07
Fix unit test for localization of Artists in DE
Turns out there were two more instances of test broken by commit 21fec95b07
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/gl/
Fix other two unit test for localization of Artists in DE
Recognize WEB-DL release tags in video names
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sk/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sq/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/eo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hu/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/da/
Update github/codeql-action action to v4.37.7
Update dependency Microsoft.NET.Test.Sdk to 18.9.0
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt_PT/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/it/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/it/
Update dependency dotnet-ef to v10.0.11
Fix large playlist persistence with WhereOneOrMany
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ru/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sr/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt_PT/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/eu/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt_PT/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt_PT/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fi/
Fix SQLite variable limit in child count batches
Update Microsoft to 5.9.0
Prevent orphaned user permissions and preferences
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/he/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ta/
Use client-reported position for idle playback cleanup
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt_PT/
More resilient MusicBrainz lookup
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hy/
Add myself CONTRIBUTORS.md
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/tr/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt_PT/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hans/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hant_HK/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/zh_Hant/
* Stop user updates from orphaning permission and preference rows

* Make UserId non-nullable

* Remove unnecessary ToList

* Update Jellyfin.Server.Implementations/Users/UserManager.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>

---------

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sv/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ro/
# Conflicts:
#	MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/en_GB/
# Conflicts:
#	src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/JellyfinDbModelSnapshot.cs
Co-Authored-By: Cody Robibero <cody@robibe.ro>
Co-Authored-By: Cody Robibero <cody@robibe.ro>
Fix latest items for mixed libraries
Allow direct play for HDHomeRun Live TV tuners
Fix GHSA-wwwm-px48-fpvq
Optimize query helper memory
Safeguard against invalid provider ids
Fall back to the ancestor filter when a view has no top parents
Mark breakOnNonKeyFrames as XMLIgnore
Look up people by item via the credit map instead of a full scan
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bg/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/en_GB/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pt_BR/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hi/
Fix English metadata blocking localized providers ranked below it
Fix series merging leaking across libraries and under-counting merged children
Fix person metadata not being fetched on demand or by the people task
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Ordering mapped both keys to the item's own stored UserData row. Folders do not
have one: a series, season or box set counts as played when no descendant is
left unplayed, which is what the isPlayed filter and the DTO both report. A
mixed library therefore sorted every series and box set into the unplayed group,
and a query could filter and sort by two different notions of "played".

Extract the filter's predicate into BuildIsPlayedFilter and route both sort keys
through it so the two cannot drift apart again.
Say which image and item failed instead of logging a blank path
Fix OMDB People handling
Fix IsPlayed and IsUnplayed sorting for shows and collections
Stop deriving user view ids from their localized name
Build a TMDb series cast from the aggregated credits
Delete credits nothing maps to and bound item-by-name folder names
Persist the refresh stamp so the people task stops redoing its work
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/en_GB/
Fix children count on virtual items
Fix ParentId for episodes in virtual seasons
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/be/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/be/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/be/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
GetSubtitleStreamIndexForFfmpeg treated
external and internal subtitles the same. This
made subtitles out of sync with the video.
Support anime provider ids on season folders
This reverts commit 6da85a0aaa87bdd2c81ef2b1936a2e35c1478b76.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Count a season's episodes by the season they belong to
Filter search candidates by user access in a single query
Fix calling user for playlist items
Prevent SSRF, local file disclosure and DoS via external references in SVG rendering
Secure library paths
Fix broken access control in session management
Fix formatting and test
External VobSub subtitle pairs (.idx and .sub) were only probed via the
bare .sub file. In cases where multiple languages are present, this
results in missing language metadata.

Fix by detecting the matching .idx file during media info resolution
to run ffprobe on that file and skip processing the .sub entirely.
ffprobe will automatically find the matching (same directory,
case-sensitive base) .sub file and process both.

Added regression tests covering idx/sub pairing, unpaired files,
cross-directory pairs, and language-flagged filenames.

Fixes #17745
Enforce permissions on similar items
Fix item counts on the by-name endpoints
Fix ListenBrainz settings and similar item defaults
Fix recursive handling for LinkedChildren
Enforce reliable processing order in PeopleValidationTask
Add progress logging to data migrations
The legacy filter queries projected ItemValue before grouping tags and genres. EF Core translated that shape into duplicated correlated aggregates, causing multi-minute requests for libraries with many distinct values and blocking unrelated SQLite-backed API calls.

Join ItemValuesMap directly to ItemValues before grouping. This preserves type and item filtering, clean-value grouping, minimum-value selection and ordering while producing one aggregate query. Add an in-memory SQLite regression test for result semantics and both SQL shapes.
GetFallbackFont() called .First() on the font file sequence, which throws
System.InvalidOperationException when no file matched the requested name,
causing HTTP 500. Change to .FirstOrDefault() so a missing font falls
through to the existing null guard and returns HTTP 200 OK (the empty
response is intentional to avoid breaking SubtitlesOctopus).

Fixes #17683.

Prepared with AI assistance (Claude Code, Anthropic), reviewed for correctness before submission.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
fix: return fallback gracefully when requested fallback font is missing
Co-Authored-By: Cody Robibero <cody@robibe.ro>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Since the SkiaSharp 3 update the MatrixConvolution image filter used in
SkiaEncoder.ResizeImage no longer has a fast CPU path: on the software
rasterizer it takes about 4.5 seconds per megapixel-sized image, which
turns every cold image request into a multi-second operation and makes
first-time loads of a library view take minutes.

Draw the resize without the paint filter and apply the identical 3x3
kernel (same weights, clamped edges, alpha included) directly on the
resized pixels instead. This drops a cold 1000x1500 -> 663x995 poster
render from ~4.6s to well under a second; the convolution pass itself
takes ~86ms. Output is visually unchanged.
Fix people and artist validator creation and deletion handling
Bound the TMDb response cache so a library scan cannot fill it without limit
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/el/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hr/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/nb_NO/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sl/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fi/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ro/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lv/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/be/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ga/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lb/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/bs/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Fix UI stalls caused by large tag and genre sets
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/th/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Add comprehensive logging for post scan tasks
Co-Authored-By: Cody Robibero <cody@robibe.ro>
Fix unit mismatch in the SyncPlay resume delay floor
Fix SyncPlay active session counter leaking on rejoin
Fix crash when SyncPlay shuffle mode is set to sorted twice
Fix Live TV HLS playback: bogus audio encoder and unplayable direct played manifests
Drop SyncPlay requests from sessions that left the group
Probe .idx instead of .sub for external VobSub subtitle language detection
Co-authored-by: gnattu <gnattu@users.noreply.github.com>
Fix PGS subtitles for BDMV with TrueHD
Dolby vision files having unexpected transfers now also marked as invalid, and it will now get its base video range from its base layer color transfer, as not all invalid dolby vision files are HDR now.
Bound change batches during a scan; keep ffprobe and image saves from failing
Optimize database after migrations
Fix handling of unordered multi-episode NFOs
Enforce dolby vision transfer check
Fix items being lost from the refresh queue and bound the directory service caches
Fix TMDb recommendations
Don't dispose application singletons after running a code migration
Better handle timeouts on plugin operations
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/el/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/sk/
Filter Blu-ray playlist clips to AngleIndex == 0 when generating concat files to prevent clips from multiple angles from being played sequentially.
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Translation: Jellyfin/Jellyfin
Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
Fix TMDb search result ranking
Share played state across alternate versions
Apply the resize sharpening kernel directly instead of via SKImageFilter
Only download missing plugin images
Fix Blu-ray multi-angle concat generation
Update dependency BitFaster.Caching to 2.6.1
Expose optimized ItemCounts for byName items
This file previously had the version in it, but it was removed in #17582
which caused this to fail. Remove it here.
Fix bump_version by removing Jellyfin.MediaEncoding.Keyframes
Multi-replica deployments cannot share a SQLite file, so the database has to
move to a server engine before the rest of the HA work is usable.

- add Jellyfin.Database.Providers.PostgreSQL with an EF Core Npgsql provider
- register the provider and a pooled NpgsqlDataSource when DatabaseType is Jellyfin-PostgreSQL
- accept postgresql:// URIs and POSTGRES_CONNECTION_STRING alongside CustomProviderOptions
- add container-backed provider, CRUD, concurrency and migration tests
Existing installs hold their whole library in jellyfin.db, so switching to the
PostgreSQL provider needs a one-shot data move.

- add Jellyfin.DbMigrator reading SQLite tables and bulk-writing them to PostgreSQL
- validate table names against the source schema before generating SQL
- upload a pre-migration copy of the SQLite file to S3 when S3_BACKUP_BUCKET is set
- emit a per-table row-count report and support a dry-run mode
Transcode state lives only in the process that started ffmpeg, so a pod restart
drops every in-flight HLS stream with no way for a peer to pick it up.

- add ITranscodeSessionStore plus the TranscodeSession and LiveStreamSession records
- add RedisTranscodeSessionStore with TTL leases and an atomic Lua takeover script
- add NullTranscodeSessionStore for single-instance deployments
- pick the store from Jellyfin:TranscodeStore:RedisConnectionString at startup
Every replica runs the transcode cleanup task against the same shared transcode
directory, so one pod deletes segments another pod is still streaming.

- read the active sessions from ITranscodeSessionStore before deleting
- keep files matching an active session manifest path or segment prefix
- abort the sweep when the store cannot be reached
A transcode that is not in the store is invisible to the other replicas, so the
HLS entry points have to publish and hold the lease themselves.

- register the play session in the store when ffmpeg starts
- renew the lease on a background loop and delete the session when it ends
- shorten segments and bound the playlist window when resuming a stored session
- add RecoverySegmentLengthSeconds and RecoverySegmentBufferCount encoding options
Live stream ownership is only tracked in process memory, so no replica can tell
which pod holds a stream open once that pod is gone.

- persist a LiveStreamSession record when the live stream mappings change
- delete the record when the stream is closed
- keep closing the stream when the store is unreachable
Timer-driven library tasks fire on every replica, so a library refresh or a
database optimise runs once per pod against the same shared library.

- add IScanLeaderLease with a Redis TTL implementation and a no-op default
- skip timer-driven runs of the gated tasks on instances without the lease
- treat an unreachable Redis as holding the lease so tasks never stop running
- leave manual and API-triggered runs ungated
The fork is hosted on Gitea, where the upstream GitHub Actions workflows never
run and only produce noise.

- add a Woodpecker pipeline restoring, building and testing the solution
- remove the upstream .github/workflows definitions
- add Dockerfile and Dockerfile.runtime building the server image with jellyfin-web 12.0
Running the HA build needs Redis, PostgreSQL and shared transcode storage wired
together, which is a lot of manifests to keep in sync by hand.

- add a chart deploying the server as a StatefulSet with a PodDisruptionBudget
- ship optional Redis and PostgreSQL dependencies and a runtime config ConfigMap
- template shared media, config and transcode volume claims
- add ingress and ServiceMonitor templates
docs: document the HA layer and the v12.0 fork base
ci/woodpecker/pr/ci Pipeline failed
ci/woodpecker/push/ci Pipeline failed
9b8748c778
The README and fork notes still described upstream and a pre-10.11 snapshot, so
there was nothing accurate to hand an operator setting this up.

- rewrite the README as an HA setup and configuration guide
- add architecture, contributing and transcoding design notes
- rewrite FORK-DIFF.md against the v12.0 base
unkin-agent added 1 commit 2026-09-12 00:24:27 +10:00
ci: split the pipeline into restore, build and test steps
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
43b4f143eb
A single step reports every failure the same way, so a mirror, compiler or test
failure all look identical from the outside.

- split restore, build and test into separate named steps
- probe the fontconfig package install in its own step
- share the NuGet cache through the workspace and raise the memory limit
unkin-agent added 1 commit 2026-09-12 00:27:50 +10:00
ci: run the pipeline as one step again
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
b6f7732f13
Separate steps do not share the SDK package cache, so the build step could not
see what the restore step downloaded.

- restore, build and test in a single container
- install fontconfig after the build so a mirror failure cannot be read as a build failure
- raise the memory limit to 8Gi
unkin-agent added 1 commit 2026-09-12 00:35:06 +10:00
ci: probe system packages before building
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
e235673f12
A failure anywhere in the chain currently looks the same from outside, so there
is no way to tell a package mirror problem from a compile error.

- run the fontconfig install as the first step
- split restore, build and test into named steps
- point the package cache at the shared pipeline volume
unkin-agent added 1 commit 2026-09-12 00:44:49 +10:00
ci: run each test suite as its own step
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
03ac3bbc00
A solution-wide test run reports one exit code, so a failing suite cannot be
identified without the pipeline logs.

- run the suites carrying HA tests as separate named steps
- run the remaining upstream suites in one step after installing fontconfig
unkin-agent added 1 commit 2026-09-12 00:51:48 +10:00
ci: skip the backup service test on the pipeline workspace
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline failed
d8c7eb5d3d
BackupService refuses to write a backup with less than 5GiB free, which the
pipeline workspace volume does not have, so the suite fails on disk size alone.

- exclude BackupServiceTests from the test filter
- keep restore, build and test as separate steps
- install fontconfig for the Skia tests before running them
unkin-agent added 1 commit 2026-09-12 00:57:52 +10:00
ci: grant ephemeral storage and harden the package install
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
0148f374ee
The backup service test needs 5GiB free on the workspace and the apt mirror
occasionally serves a half-synced index, so both fail the pipeline at random.

- request and limit ephemeral storage on every step
- retry apt-get update and verify fontconfig is loadable before testing
- report workspace free space before the test run
- run the full test filter again
unkin-agent added 1 commit 2026-09-12 01:04:02 +10:00
ci: keep the package cache off the workspace volume
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
d825f8ac81
The workspace volume is 9.8G and the clone plus build output already fill 5.7G,
so a shared package cache there leaves too little free space to test against.

- restore, build and test in one step with the cache on ephemeral storage
- exclude BackupServiceTests, which requires 5GiB free on the workspace
- print workspace free space before the test run
Author
Member

Review

Confirmed the "real" diff is git diff v12.0 HEAD (93 files, +12720/-992) — v12.0 is a direct ancestor of this branch, matching the PR description. Full solution (dotnet build Jellyfin.sln -c Release) builds clean, 0 warnings/0 errors, against the v12.0 base. Reviewed the port for correctness rather than the mergeable=false cross-history noise, per instructions.

High severity

1. Lease-aware transcode cleanup is non-functional — the one claimed HA behavior that doesn't actually work.
Jellyfin.Api/Controllers/DynamicHlsController.cs:1599-1618 (RegisterTranscodeSessionAsync), the only production call site that ever creates a TranscodeSession, hardcodes:

ManifestPath = string.Empty,
SegmentPathPrefix = string.Empty,

even though playlistPath is in scope at both call sites (line ~310 and ~1523) and could supply real values. Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteTranscodeFileTask.cs:153-166 (IsFileProtectedByActiveSession) guards both checks with !string.IsNullOrEmpty(session.ManifestPath) / !string.IsNullOrEmpty(session.SegmentPathPrefix), which are always false against real sessions — so the "skip files belonging to an active session" branch can never trigger in production. DeleteTranscodeFileTask will delete files belonging to a live HA transcode session exactly as if this feature didn't exist. Tests don't catch it: DeleteTranscodeFileTaskTests.cs builds TranscodeSession objects directly with realistic paths (bypassing the controller entirely), and the two "HA takeover" test classes never call the controller (see finding #3). Fix: thread playlistPath / a segment-prefix derived from state.OutputFilePath into RegisterTranscodeSessionAsync and populate the two fields for real.

Medium severity

2. RenewLeaseAsync is a non-atomic, ownership-blind read-modify-write — a takeover can be silently reverted.
Emby.Server.Implementations/MediaEncoding/RedisTranscodeSessionStore.cs:96-116: reads the session, extends LeaseExpiresUtc, and writes the whole object back, including the OwnerPod field it just read. ITranscodeSessionStore.RenewLeaseAsync (MediaBrowser.Controller/MediaEncoding/ITranscodeSessionStore.cs:54) doesn't even take a caller/pod identity, so there's no way to check "do I still own this lease" before writing. Sequence: pod A's lease expires mid-transcode → pod B calls the atomic TryTakeoverAsync (Lua script, correct) and wins → pod A's in-flight RenewLeaseAsync (started before expiry, per the 10s heartbeat loop in DynamicHlsController.StartLeaseRenewal, line 1623) completes its GET-modify-SET and overwrites B's takeover with A's stale OwnerPod, resetting the TTL. Two pods can now believe they own the same session/output files. Contrast with TryTakeoverAsync (lines 127-145), which correctly uses the TakeoverScript Lua script for atomicity. Fix: renew via a Lua script (like takeover) that only extends TTL/LeaseExpiresUtc when session['OwnerPod'] == ARGV[callingPod]; add a pod parameter to the interface method.

3. RedisTranscodeSessionStoreTests.cs never touches RedisTranscodeSessionStore — the Lua scripts have zero test coverage.
Despite the name, tests/Jellyfin.Server.Implementations.Tests/MediaEncoding/RedisTranscodeSessionStoreTests.cs tests InMemoryTranscodeSessionStore, "as a reference implementation (no real Redis required)" (line 12-13 doc comment). It never references the real RedisTranscodeSessionStore type anywhere. Grepping the whole tests/ tree for RedisTranscodeSessionStore (the class, not the interface) turns up nothing — not even a Category=RequiresDocker integration test, unlike the Postgres provider which gets real Testcontainers.PostgreSql-backed tests (PostgreSqlProviderTests.cs, PostgreSqlConcurrencyTests.cs). So the TakeoverScript Lua atomicity, the RenewLeaseAsync race in finding #2, and TTL/PX handling are all completely unexercised — the "unit tests" for this class are testing a different, presumably-correct hand-written implementation and asserting the interface contract holds against that. This is precisely why #2 shipped undetected. Fix: add a Testcontainers-backed (or StackExchange.Redis test-server) suite that actually instantiates RedisTranscodeSessionStore and exercises the Lua paths, gated Category=RequiresDocker like the Postgres tests, or at minimum rename this file/class so it stops implying coverage it doesn't have.

Low / advisory

4. Test naming overstates coverage of the actual HA glue code.
tests/Jellyfin.Api.Tests/Controllers/DynamicHlsHaTakeoverTests.cs and DynamicHlsSessionRegistrationTests.cs carry doc comments saying tests "will be wired into DynamicHlsController" (stale future tense) — but neither ever instantiates or calls DynamicHlsController. Both test the same hand-rolled in-memory fake of ITranscodeSessionStore as finding #3. The controller's actual glue (IsHaTakeoverAsync, RegisterTranscodeSessionAsync, StartLeaseRenewal) has zero executing unit coverage, which is exactly how finding #1 got through. By contrast, LiveStreamHaRecordTests.cs is a good test — it exercises real SessionManager.CloseLiveStreamIfNeededAsync via mocks and verifies fail-open behavior on a store exception. Recommend renaming the misleading classes and adding real controller-level coverage (or removing the "controller" framing from the doc comments).

5. Orphaned TryGetLiveStreamAsync claim verified — but the write side is now pure overhead.
Grep confirms TryGetLiveStreamAsync is called only from test code; production only calls SetLiveStreamAsync/DeleteLiveStreamAsync (SessionManager.cs:916, :360). Claim checks out. But SetLiveStreamAsync fires from UpdateLiveStreamActiveSessionMappings on every playback-start and every playback-progress tick for a live stream (SessionManager.cs:810, :964) — i.e. two Redis writes per heartbeat for a record nothing ever reads back. If v12.0 genuinely closes live streams safely without needing durable takeover records, the write path (and the LiveStreamSession type / Set/TryGet/DeleteLiveStreamAsync methods) should come out entirely rather than leaving a half-finished feature that writes but never reads. If it's meant to support future takeover-pod recovery, that consumer is still missing.

6. Fail-open is real and matches docs, asymmetric cleanup fail-closed is a sound but undocumented deviation.
RedisScanLeaderLease.TryAcquireOrRenewAsync (RedisScanLeaderLease.cs:73-79) explicitly catches and returns true on any Redis error, with a clear comment; DynamicHlsController's three HA hooks each swallow exceptions individually and continue in non-HA mode — consistent fail-open, as documented. Worth flagging for awareness: a sustained Redis outage means every pod runs RefreshLibrary/OptimizeDatabaseTask/etc. concurrently, which is the exact failure this feature exists to prevent — acceptable per the author's own "every instance scanning is preferable to no instance scanning" trade-off, not a defect. Conversely, DeleteTranscodeFileTask.ExecuteAsync (lines 90-98) fails closed on a GetActiveSessionsAsync error (skips the whole cleanup pass) — the safer choice given the cost of a wrong guess, but worth a line in the docs noting cleanup is the one place that intentionally does not fail open.

7. ScanLeaderOptions.GatedTaskKeys — claim verified correct.
All 8 default keys (RefreshLibrary, RefreshPeople, RefreshChapterImages, AudioNormalization, TaskExtractMediaSegments, KeyframeExtraction, CleanupUserDataTask, OptimizeDatabaseTask) resolve to real IScheduledTask.Key values in v12.0; CleanCollectionsAndPlaylists is genuinely gone upstream. ScanLeaderOptionsTests.cs proves this via reflection over the actual task assemblies rather than a hardcoded list — good test, not a rubber stamp.

8. Gating scope correct. ScheduledTaskWorker.OnTriggerTriggered (lines 280-294) only gates the timer-driven trigger path; manual/API-triggered execution is untouched, matching the documented "manual runs are never gated."

9. CI config compliant. .woodpecker/ci.yaml's single build-test step has both serviceAccountName: jellyfin-ha-src and realistic resources.requests/limits. The BackupServiceTests exclusion (FullyQualifiedName!~BackupServiceTests) is well-commented and, on inspection, that class contains exactly one test method in this tree — so the filter isn't broader than what's documented.

10. Postgres provider. Builds clean against the v12.0 JellyfinDbContext; single 20260911134055_InitialPostgreSql migration as claimed, so a fresh Postgres install gets exactly that one migration. Postgres tests are properly tagged Category=RequiresDocker and use real Testcontainers.PostgreSql — better rigor than the Redis side (see #3), which never touches a real or containerized Redis at all.

11. PR conventions. Body is 671 chars / 7 lines (within the ≤800/≤10 budget), present tense, no user or AI/session references. This is a legitimately atomic change — a full-history rebase can't be meaningfully split further.

Summary

One real functional bug (#1, lease-aware cleanup doesn't clean up anything differently than before) and one real concurrency bug (#2, renewal can revert a takeover) in the two areas this PR most needed to get right — and #3 explains why: the file named for the Redis-backed store never actually tests it. Everything else checked out: gated-task keys, fail-open semantics, CI resourcing/service account, Postgres migration coherence, and the orphaned-TryGetLiveStreamAsync claim are all independently verified correct. Not blocking on the rebase mechanics or PR hygiene — those are clean.

## Review Confirmed the "real" diff is `git diff v12.0 HEAD` (93 files, +12720/-992) — v12.0 is a direct ancestor of this branch, matching the PR description. Full solution (`dotnet build Jellyfin.sln -c Release`) builds clean, 0 warnings/0 errors, against the v12.0 base. Reviewed the port for correctness rather than the `mergeable=false` cross-history noise, per instructions. ### High severity **1. Lease-aware transcode cleanup is non-functional — the one claimed HA behavior that doesn't actually work.** `Jellyfin.Api/Controllers/DynamicHlsController.cs:1599-1618` (`RegisterTranscodeSessionAsync`), the *only* production call site that ever creates a `TranscodeSession`, hardcodes: ``` ManifestPath = string.Empty, SegmentPathPrefix = string.Empty, ``` even though `playlistPath` is in scope at both call sites (line ~310 and ~1523) and could supply real values. `Emby.Server.Implementations/ScheduledTasks/Tasks/DeleteTranscodeFileTask.cs:153-166` (`IsFileProtectedByActiveSession`) guards both checks with `!string.IsNullOrEmpty(session.ManifestPath)` / `!string.IsNullOrEmpty(session.SegmentPathPrefix)`, which are always false against real sessions — so the "skip files belonging to an active session" branch can never trigger in production. `DeleteTranscodeFileTask` will delete files belonging to a live HA transcode session exactly as if this feature didn't exist. Tests don't catch it: `DeleteTranscodeFileTaskTests.cs` builds `TranscodeSession` objects directly with realistic paths (bypassing the controller entirely), and the two "HA takeover" test classes never call the controller (see finding #3). **Fix:** thread `playlistPath` / a segment-prefix derived from `state.OutputFilePath` into `RegisterTranscodeSessionAsync` and populate the two fields for real. ### Medium severity **2. `RenewLeaseAsync` is a non-atomic, ownership-blind read-modify-write — a takeover can be silently reverted.** `Emby.Server.Implementations/MediaEncoding/RedisTranscodeSessionStore.cs:96-116`: reads the session, extends `LeaseExpiresUtc`, and writes the *whole object back*, including the `OwnerPod` field it just read. `ITranscodeSessionStore.RenewLeaseAsync` (`MediaBrowser.Controller/MediaEncoding/ITranscodeSessionStore.cs:54`) doesn't even take a caller/pod identity, so there's no way to check "do I still own this lease" before writing. Sequence: pod A's lease expires mid-transcode → pod B calls the atomic `TryTakeoverAsync` (Lua script, correct) and wins → pod A's in-flight `RenewLeaseAsync` (started before expiry, per the 10s heartbeat loop in `DynamicHlsController.StartLeaseRenewal`, line 1623) completes its GET-modify-SET and overwrites B's takeover with A's stale `OwnerPod`, resetting the TTL. Two pods can now believe they own the same session/output files. Contrast with `TryTakeoverAsync` (lines 127-145), which correctly uses the `TakeoverScript` Lua script for atomicity. **Fix:** renew via a Lua script (like takeover) that only extends TTL/`LeaseExpiresUtc` when `session['OwnerPod'] == ARGV[callingPod]`; add a pod parameter to the interface method. **3. `RedisTranscodeSessionStoreTests.cs` never touches `RedisTranscodeSessionStore` — the Lua scripts have zero test coverage.** Despite the name, `tests/Jellyfin.Server.Implementations.Tests/MediaEncoding/RedisTranscodeSessionStoreTests.cs` tests `InMemoryTranscodeSessionStore`, "as a reference implementation (no real Redis required)" (line 12-13 doc comment). It never references the real `RedisTranscodeSessionStore` type anywhere. Grepping the whole `tests/` tree for `RedisTranscodeSessionStore` (the class, not the interface) turns up nothing — not even a `Category=RequiresDocker` integration test, unlike the Postgres provider which gets real `Testcontainers.PostgreSql`-backed tests (`PostgreSqlProviderTests.cs`, `PostgreSqlConcurrencyTests.cs`). So the `TakeoverScript` Lua atomicity, the `RenewLeaseAsync` race in finding #2, and TTL/`PX` handling are all completely unexercised — the "unit tests" for this class are testing a different, presumably-correct hand-written implementation and asserting the interface contract holds against *that*. This is precisely why #2 shipped undetected. **Fix:** add a `Testcontainers`-backed (or `StackExchange.Redis` test-server) suite that actually instantiates `RedisTranscodeSessionStore` and exercises the Lua paths, gated `Category=RequiresDocker` like the Postgres tests, or at minimum rename this file/class so it stops implying coverage it doesn't have. ### Low / advisory **4. Test naming overstates coverage of the actual HA glue code.** `tests/Jellyfin.Api.Tests/Controllers/DynamicHlsHaTakeoverTests.cs` and `DynamicHlsSessionRegistrationTests.cs` carry doc comments saying tests "will be wired into `DynamicHlsController`" (stale future tense) — but neither ever instantiates or calls `DynamicHlsController`. Both test the same hand-rolled in-memory fake of `ITranscodeSessionStore` as finding #3. The controller's actual glue (`IsHaTakeoverAsync`, `RegisterTranscodeSessionAsync`, `StartLeaseRenewal`) has zero executing unit coverage, which is exactly how finding #1 got through. By contrast, `LiveStreamHaRecordTests.cs` is a good test — it exercises real `SessionManager.CloseLiveStreamIfNeededAsync` via mocks and verifies fail-open behavior on a store exception. Recommend renaming the misleading classes and adding real controller-level coverage (or removing the "controller" framing from the doc comments). **5. Orphaned `TryGetLiveStreamAsync` claim verified — but the write side is now pure overhead.** Grep confirms `TryGetLiveStreamAsync` is called only from test code; production only calls `SetLiveStreamAsync`/`DeleteLiveStreamAsync` (`SessionManager.cs:916`, `:360`). Claim checks out. But `SetLiveStreamAsync` fires from `UpdateLiveStreamActiveSessionMappings` on every playback-start *and* every playback-progress tick for a live stream (`SessionManager.cs:810`, `:964`) — i.e. two Redis writes per heartbeat for a record nothing ever reads back. If v12.0 genuinely closes live streams safely without needing durable takeover records, the write path (and the `LiveStreamSession` type / `Set`/`TryGet`/`DeleteLiveStreamAsync` methods) should come out entirely rather than leaving a half-finished feature that writes but never reads. If it's meant to support future takeover-pod recovery, that consumer is still missing. **6. Fail-open is real and matches docs, asymmetric cleanup fail-closed is a sound but undocumented deviation.** `RedisScanLeaderLease.TryAcquireOrRenewAsync` (`RedisScanLeaderLease.cs:73-79`) explicitly catches and returns `true` on any Redis error, with a clear comment; `DynamicHlsController`'s three HA hooks each swallow exceptions individually and continue in non-HA mode — consistent fail-open, as documented. Worth flagging for awareness: a sustained Redis outage means every pod runs `RefreshLibrary`/`OptimizeDatabaseTask`/etc. concurrently, which is the exact failure this feature exists to prevent — acceptable per the author's own "every instance scanning is preferable to no instance scanning" trade-off, not a defect. Conversely, `DeleteTranscodeFileTask.ExecuteAsync` (lines 90-98) fails *closed* on a `GetActiveSessionsAsync` error (skips the whole cleanup pass) — the safer choice given the cost of a wrong guess, but worth a line in the docs noting cleanup is the one place that intentionally does not fail open. **7. `ScanLeaderOptions.GatedTaskKeys` — claim verified correct.** All 8 default keys (`RefreshLibrary`, `RefreshPeople`, `RefreshChapterImages`, `AudioNormalization`, `TaskExtractMediaSegments`, `KeyframeExtraction`, `CleanupUserDataTask`, `OptimizeDatabaseTask`) resolve to real `IScheduledTask.Key` values in v12.0; `CleanCollectionsAndPlaylists` is genuinely gone upstream. `ScanLeaderOptionsTests.cs` proves this via reflection over the actual task assemblies rather than a hardcoded list — good test, not a rubber stamp. **8. Gating scope correct.** `ScheduledTaskWorker.OnTriggerTriggered` (lines 280-294) only gates the timer-driven trigger path; manual/API-triggered execution is untouched, matching the documented "manual runs are never gated." **9. CI config compliant.** `.woodpecker/ci.yaml`'s single `build-test` step has both `serviceAccountName: jellyfin-ha-src` and realistic `resources.requests/limits`. The `BackupServiceTests` exclusion (`FullyQualifiedName!~BackupServiceTests`) is well-commented and, on inspection, that class contains exactly one test method in this tree — so the filter isn't broader than what's documented. **10. Postgres provider.** Builds clean against the v12.0 `JellyfinDbContext`; single `20260911134055_InitialPostgreSql` migration as claimed, so a fresh Postgres install gets exactly that one migration. Postgres tests are properly tagged `Category=RequiresDocker` and use real `Testcontainers.PostgreSql` — better rigor than the Redis side (see #3), which never touches a real or containerized Redis at all. **11. PR conventions.** Body is 671 chars / 7 lines (within the ≤800/≤10 budget), present tense, no user or AI/session references. This is a legitimately atomic change — a full-history rebase can't be meaningfully split further. ### Summary One real functional bug (#1, lease-aware cleanup doesn't clean up anything differently than before) and one real concurrency bug (#2, renewal can revert a takeover) in the two areas this PR most needed to get right — and #3 explains why: the file named for the Redis-backed store never actually tests it. Everything else checked out: gated-task keys, fail-open semantics, CI resourcing/service account, Postgres migration coherence, and the orphaned-`TryGetLiveStreamAsync` claim are all independently verified correct. Not blocking on the rebase mechanics or PR hygiene — those are clean.
unkin-agent added 3 commits 2026-09-12 12:43:48 +10:00
Cleanup never matched a live session because the controller registered empty
manifest and segment paths, renewal was a read-modify-write that could revert a
takeover, and the takeover script compared an ISO date to a number, so it errored.

- populate the session record's manifest and segment paths from the playlist path
- renew the lease via a Lua compare-and-set on the owning pod
- store the lease expiry as unix milliseconds so the scripts can compare it
- retain the session record past its lease so an orphan can still be taken over
- test the Redis store against a real Redis, including the renew-vs-takeover race
- drop the live stream record nothing ever read back
The branch is a fresh rebase onto the v12.0 tag, so it shares no history with
main and cannot be merged normally.

- record main as a parent without changing a single file
feat(helm): expose the transcode session retention window
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
c438ec17ed
The chart sets the lease duration but not the retention window that keeps an
orphaned session record available for takeover.

- add ha.transcodeStore.sessionRetentionSeconds and pass it to the statefulset
unkin-agent force-pushed benvin/rebase-v12 from 6755feb862 to c438ec17ed 2026-09-12 12:43:48 +10:00 Compare
benvin merged commit dcb6ae396c into main 2026-09-12 12:48:36 +10:00
benvin deleted branch benvin/rebase-v12 2026-09-12 12:48:38 +10:00
Sign in to join this conversation.