From e0ebe16f3e5eae36bf7595c4c166233b266a016d Mon Sep 17 00:00:00 2001
From: Jason Dove <1695733+jasongdove@users.noreply.github.com>
Date: Mon, 16 Feb 2026 12:37:23 -0600
Subject: [PATCH] pass cancellation token
---
.../Metadata/LocalStatisticsProvider.cs | 24 +++++++++++--------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/ErsatzTV.Infrastructure/Metadata/LocalStatisticsProvider.cs b/ErsatzTV.Infrastructure/Metadata/LocalStatisticsProvider.cs
index 7b67de330..3ebbc2914 100644
--- a/ErsatzTV.Infrastructure/Metadata/LocalStatisticsProvider.cs
+++ b/ErsatzTV.Infrastructure/Metadata/LocalStatisticsProvider.cs
@@ -189,7 +189,7 @@ public partial class LocalStatisticsProvider : ILocalStatisticsProvider
try
{
string filePath = await PathForMediaItem(mediaItem);
- return await GetProfileCount(ffmpegPath, filePath);
+ return await GetProfileCount(ffmpegPath, filePath, cancellationToken);
}
catch (Exception ex)
{
@@ -354,7 +354,10 @@ public partial class LocalStatisticsProvider : ILocalStatisticsProvider
return stats;
}
- private async Task