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

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);
}
}
}