aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-08-07Merge pull request #17554 from IDisposable/fix/faster-update-itemsCody Robibero
Speed up UpdateOrInsertItems for related information
2026-08-07Merge pull request #17558 from IDisposable/fix/set-cache-to-privateCody Robibero
Switch SQLite connection Cache to Private
2026-08-08Translated using Weblate (Turkish)queeup
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/tr/
2026-08-08Translated using Weblate (Lithuanian)Vitalijus
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
2026-08-07Merge pull request #17536 from gnattu/fix-concurrent-racingCody Robibero
Fix concurrent ffmpeg segment racing
2026-08-07Translated using Weblate (Lithuanian)Vitalijus
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
2026-08-07Translated using Weblate (Lithuanian)Vitalijus
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
2026-08-07Batch people lookups when building item DTOsbrandon
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.
2026-08-07Fix EF core designer driftsShadowghost
2026-08-07Stop image endpoints from upscaling beyond the source resolutionvavallee
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.
2026-08-07Translated using Weblate (Lithuanian)Vitalijus
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
2026-08-07Apply review suggestionsShadowghost
2026-08-06Translated using Weblate (Lithuanian)Vitalijus
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
2026-08-06Cleanup and simplify query helpersShadowghost
2026-08-06Translated using Weblate (Hungarian)Keleti Márton
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/hu/
2026-08-06Translated using Weblate (German)simonanter
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/de/
2026-08-06Move the deletion of old related info to just before the saveMarc Brooks
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.
2026-08-06Add warning that PessimisticLockBehavior is unsafeMarc Brooks
Since it uses ReaderWriterLockSlim, it gets tripped up if the transaction is continued across an await boundary on a different thread.
2026-08-06Fix captured (and discarded) Execute exceptionsMarc Brooks
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.
2026-08-06Switch SQLite connection Cache to PrivateMarc Brooks
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.
2026-08-05Speed up search for existing item valuesMarc Brooks
Replace the O(n²) array .First scan with a dictionary lookup
2026-08-05Use a HashSet for existing itemsMarc Brooks
Makes the test O(log n)
2026-08-05Merge pull request #17315 from Florin-Popescu/replaygain-missing-tagsCody Robibero
Parse ReplayGain album gain field
2026-08-05Translated using Weblate (Faroese)krvi
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
2026-08-05Translated using Weblate (Polish)Kityn
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/pl/
2026-08-05Translated using Weblate (Spanish)Luis Fernando Illapa
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es/
2026-08-05Merge pull request #17466 from Shadowghost/fix-byname-queriesCody Robibero
Improve People deduplication, fix search and restrict ItemByName responses
2026-08-05Merge pull request #17537 from vdatanet/fix/pcm-wav-transcodeCody Robibero
Fix PCM audio transcoding to wav returning HTTP 500 and headerless output
2026-08-05Merge pull request #17549 from theguymadmax/revert-livetv-channel-icon-refreshCody Robibero
Revert "Refresh Live TV channel icons on every guide update."
2026-08-05Merge pull request #17524 from Shadowghost/fix-extra-discoveryCody Robibero
Keep folder extras with the item that owns the folder
2026-08-05Revert "Refresh Live TV channel icons on every guide update."theguymadmax
This reverts commit 372c1681d8272c6fa8f120a132bc40351067fb10.
2026-08-05Merge pull request #17507 from jellyfin/renovate/sharpcompress-0.xBond-009
Update dependency SharpCompress to 0.50.4
2026-08-05Update dependency SharpCompress to 0.50.4renovate[bot]
2026-08-05Translated using Weblate (Spanish)Luis Fernando Illapa
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/es/
2026-08-05Translated using Weblate (Estonian)rimasx
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/et/
2026-08-05Translated using Weblate (Danish)Dan Johansen
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/da/
2026-08-05Translated using Weblate (Czech)Helak
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/cs/
2026-08-05Merge pull request #17493 from jellyfin/renovate/ci-depsBond-009
Update github/codeql-action action to v4.37.6
2026-08-05Project the lowered person credit values once when updating peopleShadowghost
2026-08-05Merge remote-tracking branch 'upstream/master' into fix-byname-queriesShadowghost
# Conflicts: # Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
2026-08-05Fix by-name endpoints reporting TotalRecordCount=0 next to a populated Items ↵vdatanet
array `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.
2026-08-05Translated using Weblate (Faroese)krvi
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
2026-08-04Translated using Weblate (Faroese)krvi
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/fo/
2026-08-04Merge pull request #17523 from Shadowghost/fix-resume-container-foldersCody Robibero
Only treat series and seasons as resumable folders
2026-08-04Translated using Weblate (Lithuanian)Vitalijus
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/lt/
2026-08-04Translated using Weblate (Arabic)Translation expert
Translation: Jellyfin/Jellyfin Translate-URL: https://translate.jellyfin.org/projects/jellyfin/jellyfin-core/ar/
2026-08-04Merge pull request #17528 from Shadowghost/websocket-logs-debugCody Robibero
Degrade ForceKeepAlive logs to debug
2026-08-04Fix PCM audio transcoding to wav returning HTTP 500 and headerless outputvdatanet
`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.
2026-08-04Update github/codeql-action action to v4.37.6renovate[bot]
2026-08-05Fix concurrent ffmpeg segment racinggnattu
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.