From 0874a26131a5a1e9d62fb7231acbaf9eb921b5c8 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Tue, 9 Jun 2026 23:23:03 +0200 Subject: Coalesce alternate-version progress onto primary in resume filter --- MediaBrowser.Controller/Library/IUserDataManager.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'MediaBrowser.Controller/Library/IUserDataManager.cs') diff --git a/MediaBrowser.Controller/Library/IUserDataManager.cs b/MediaBrowser.Controller/Library/IUserDataManager.cs index 0b4229c784..2ee8845346 100644 --- a/MediaBrowser.Controller/Library/IUserDataManager.cs +++ b/MediaBrowser.Controller/Library/IUserDataManager.cs @@ -62,6 +62,24 @@ namespace MediaBrowser.Controller.Library /// A dictionary mapping item IDs to their user data. Dictionary GetUserDataBatch(IReadOnlyList items, User user); + /// + /// Gets the user data that should drive resume for a multi-version item: the data of the most + /// recently played alternate version (including the item itself) that has a resume point. + /// + /// The user. + /// The item. + /// The resume version's data, or null when the item has no versions or none has a resume point. + VersionResumeData? GetResumeUserData(User user, BaseItem item); + + /// + /// Gets the resume-driving user data for multiple items in a single batch operation. + /// See . + /// + /// The items to get resume data for. + /// The user. + /// A dictionary mapping item ids to their resume version's data; items without one are omitted. + IReadOnlyDictionary GetResumeUserDataBatch(IReadOnlyList items, User user); + /// /// Gets the user data dto. /// -- cgit v1.2.3