mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Make keyframe extraction task cancellable (#14368)
This commit is contained in:
parent
6d077fcf40
commit
96c9f4fdad
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user