aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/MediaSegments
diff options
context:
space:
mode:
authorThunderClapLP <59509654+ThunderClapLP@users.noreply.github.com>2025-06-10 15:45:09 +0200
committerGitHub <noreply@github.com>2025-06-10 07:45:09 -0600
commit6b5ce934b3ad522cc73b702538026ec7c99103cd (patch)
treeb0e8bdda983c6324c9e342e3c6edd01f8043c9e6 /MediaBrowser.Model/MediaSegments
parent7174bb6a93e77031da9a7130305dd3c1e1426fe9 (diff)
Fix existing media segments not being handled on scan (#14218)
Diffstat (limited to 'MediaBrowser.Model/MediaSegments')
-rw-r--r--MediaBrowser.Model/MediaSegments/MediaSegmentGenerationRequest.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Model/MediaSegments/MediaSegmentGenerationRequest.cs b/MediaBrowser.Model/MediaSegments/MediaSegmentGenerationRequest.cs
index 8c1f44de8..53d017375 100644
--- a/MediaBrowser.Model/MediaSegments/MediaSegmentGenerationRequest.cs
+++ b/MediaBrowser.Model/MediaSegments/MediaSegmentGenerationRequest.cs
@@ -1,4 +1,7 @@
using System;
+using System.Collections.Generic;
+using Jellyfin.Database.Implementations.Entities;
+using MediaBrowser.Model.MediaSegments;
namespace MediaBrowser.Model;
@@ -11,4 +14,9 @@ public record MediaSegmentGenerationRequest
/// Gets the Id to the BaseItem the segments should be extracted from.
/// </summary>
public Guid ItemId { get; init; }
+
+ /// <summary>
+ /// Gets existing media segments generated on an earlier scan by this provider.
+ /// </summary>
+ public required IReadOnlyList<MediaSegmentDto> ExistingSegments { get; init; }
}