Merge pull request #11165 from vessd/transcoding-exception

Catch delete encoded media file exceptions
This commit is contained in:
Bond-009 2024-03-17 17:38:42 +01:00 committed by GitHub
commit 8070aabe1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -724,7 +724,14 @@ public sealed class TranscodeManager : ITranscodeManager, IDisposable
foreach (var file in _fileSystem.GetFilePaths(path, true))
{
_fileSystem.DeleteFile(file);
try
{
_fileSystem.DeleteFile(file);
}
catch (Exception ex)
{
_logger.LogError(ex, "Error deleting encoded media cache file {Path}", path);
}
}
}