Repository navigation
fix: Emby: episodes with several versions no longer repeat in the season list - #2253
Conversation
Emby only groups the versions of an episode into one item when the
query carries a UserId. /Shows/{id}/Episodes went out without it, so a
season held in 1080p and 4K listed every episode twice. Jellyfin reads
the user from the session and was never affected.
Measured against Emby 4.10.2.0 on a 6 episode season with two versions
each: 12 items without UserId, 6 with it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
✅ Build SuccessfulAll platform builds and tests passed. You can download the test artifacts below. Tests ✅ 9113 passed, analyzer clean Touched lines ✅ no new diagnostics Coverage 🧪 tests run all 4 measurable changed lines
|
Pull Request
Summary
On Emby, a season whose episodes are held in more than one version (4K and 1080p, for example) lists every episode once per version. A 6 episode season shows 12 entries: 1, 1, 2, 2 and so on.
EmbyItemsApi.getEpisodesasks/Shows/{id}/Episodeswithout a user, and Emby only folds the versions of an episode into one item when the query names one. This addsUserIdto that query, the same waygetSeasonsright above it already does.Jellyfin is not affected, and its code is not touched.
Related Issues
/Itemsasked without the user)Type of Change
Changes Made
packages/server_emby/lib/src/api/emby_items_api.dart:getEpisodessendsUserId.packages/server_emby/test/emby_items_api_test.dart: a test that the episodes query carries it.Platform
Testing
Emby 4.10.2.0, a season of 6 episodes with two versions each (2160p and 1080p).
Asking the server directly:
/Shows/{id}/Episodes?SeasonId=...returns 12 items (1, 1, 2, 2 ... 6, 6)UserIdreturns 6In the app, on Windows, with two builds from the same base that differ only by this commit:
The Checks workflow passes on this commit in my fork.
Test Steps
getEpisodesis also what the play queue, the episode browser and season downloads read, so they were getting each episode once per version as well. Of those, I did not try downloads.Screenshots (if applicable)
None attached.
Checklist
I used an AI assistant (Claude Code) to track this down and write the change. I ran both builds and checked the result on screen myself.
🤖 Generated with Claude Code