Make keyframe extraction task cancellable (#14368)

This commit is contained in:
Tim Eisele 2025-06-23 16:29:42 +02:00 committed by GitHub
parent 6d077fcf40
commit 96c9f4fdad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,6 +75,8 @@ public class KeyframeExtractionScheduledTask : IScheduledTask
var videos = _libraryManager.GetItemList(query);
foreach (var video in videos)
{
cancellationToken.ThrowIfCancellationRequested();
// Only local files supported
var path = video.Path;
if (File.Exists(path))