diff options
| author | Cody Robibero <cody@robibe.ro> | 2023-11-15 16:35:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-15 16:35:14 -0700 |
| commit | 6d1abf67c36379f0b061095619147a3691841e21 (patch) | |
| tree | 510a271453b8ff2b82cfd5676f2ec8ea76c233ad /Jellyfin.Api/Helpers/TranscodingJobHelper.cs | |
| parent | 350df4a617d4c9f350ec0a356aedf7ec8944d155 (diff) | |
| parent | 5fa1b8ac3a7e65f0972e4fc55e83172f66efd794 (diff) | |
Merge pull request #10463 from jellyfin/dotnet8
Update to .NET 8
Diffstat (limited to 'Jellyfin.Api/Helpers/TranscodingJobHelper.cs')
| -rw-r--r-- | Jellyfin.Api/Helpers/TranscodingJobHelper.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Helpers/TranscodingJobHelper.cs b/Jellyfin.Api/Helpers/TranscodingJobHelper.cs index c16a586d6..77d3edbd6 100644 --- a/Jellyfin.Api/Helpers/TranscodingJobHelper.cs +++ b/Jellyfin.Api/Helpers/TranscodingJobHelper.cs @@ -280,6 +280,7 @@ public class TranscodingJobHelper : IDisposable if (job.CancellationTokenSource?.IsCancellationRequested == false) { +#pragma warning disable CA1849 // Can't await in lock block job.CancellationTokenSource.Cancel(); } } @@ -291,7 +292,6 @@ public class TranscodingJobHelper : IDisposable lock (job.ProcessLock!) { -#pragma warning disable CA1849 // Can't await in lock block job.TranscodingThrottler?.Stop().GetAwaiter().GetResult(); var process = job.Process; @@ -405,7 +405,7 @@ public class TranscodingJobHelper : IDisposable var name = Path.GetFileNameWithoutExtension(outputFilePath); var filesToDelete = _fileSystem.GetFilePaths(directory) - .Where(f => f.IndexOf(name, StringComparison.OrdinalIgnoreCase) != -1); + .Where(f => f.Contains(name, StringComparison.OrdinalIgnoreCase)); List<Exception>? exs = null; foreach (var file in filesToDelete) |
