mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 15:48:03 +00:00
Make keyframe extraction task cancellable (#14368)
This commit is contained in:
@@ -75,6 +75,8 @@ public class KeyframeExtractionScheduledTask : IScheduledTask
|
|||||||
var videos = _libraryManager.GetItemList(query);
|
var videos = _libraryManager.GetItemList(query);
|
||||||
foreach (var video in videos)
|
foreach (var video in videos)
|
||||||
{
|
{
|
||||||
|
cancellationToken.ThrowIfCancellationRequested();
|
||||||
|
|
||||||
// Only local files supported
|
// Only local files supported
|
||||||
var path = video.Path;
|
var path = video.Path;
|
||||||
if (File.Exists(path))
|
if (File.Exists(path))
|
||||||
|
|||||||
Reference in New Issue
Block a user