[PR #13687] [MERGED] Add fast-path to getting just the SeriesPresentationUniqueKey for NextUp #13666

Closed
opened 2026-02-07 07:17:03 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/13687
Author: @crobibero
Created: 3/10/2025
Status: Merged
Merged: 3/19/2025
Merged by: @crobibero

Base: masterHead: next-up2


📝 Commits (2)

  • f58109d Add more optimized query to calculate series that should be processed for next up
  • c099a77 Filter series based on last watched date

📊 Changes

7 files changed (+128 additions, -113 deletions)

View changed files

📝 Emby.Server.Implementations/Library/LibraryManager.cs (+15 -0)
📝 Emby.Server.Implementations/TV/TVSeriesManager.cs (+10 -51)
📝 Jellyfin.Api/Controllers/TvShowsController.cs (+2 -2)
📝 Jellyfin.Server.Implementations/Item/BaseItemRepository.cs (+31 -0)
📝 MediaBrowser.Controller/Library/ILibraryManager.cs (+9 -0)
📝 MediaBrowser.Controller/Persistence/IItemRepository.cs (+8 -0)
📝 MediaBrowser.Model/Querying/NextUpQuery.cs (+53 -60)

📄 Description

Part of https://github.com/jellyfin/jellyfin/issues/13047

Alternate to https://github.com/jellyfin/jellyfin/pull/13679

This change makes the next up call take ~1.5s (0.1s in get series keys)

It's possible that this query is missing some of the functionality but it returns the correct set of next up series for the account I tested with


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/13687 **Author:** [@crobibero](https://github.com/crobibero) **Created:** 3/10/2025 **Status:** ✅ Merged **Merged:** 3/19/2025 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `master` ← **Head:** `next-up2` --- ### 📝 Commits (2) - [`f58109d`](https://github.com/jellyfin/jellyfin/commit/f58109dff02580d23eb66b174040aa506eed160f) Add more optimized query to calculate series that should be processed for next up - [`c099a77`](https://github.com/jellyfin/jellyfin/commit/c099a77e6a8474155a52a21e96d1165a134b621d) Filter series based on last watched date ### 📊 Changes **7 files changed** (+128 additions, -113 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Server.Implementations/Library/LibraryManager.cs` (+15 -0) 📝 `Emby.Server.Implementations/TV/TVSeriesManager.cs` (+10 -51) 📝 `Jellyfin.Api/Controllers/TvShowsController.cs` (+2 -2) 📝 `Jellyfin.Server.Implementations/Item/BaseItemRepository.cs` (+31 -0) 📝 `MediaBrowser.Controller/Library/ILibraryManager.cs` (+9 -0) 📝 `MediaBrowser.Controller/Persistence/IItemRepository.cs` (+8 -0) 📝 `MediaBrowser.Model/Querying/NextUpQuery.cs` (+53 -60) </details> ### 📄 Description Part of https://github.com/jellyfin/jellyfin/issues/13047 Alternate to https://github.com/jellyfin/jellyfin/pull/13679 This change makes the next up call take ~1.5s (0.1s in get series keys) It's possible that this query is missing some of the functionality but it returns the correct set of next up series for the account I tested with --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:17:03 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13666