Merge pull request #11165 from vessd/transcoding-exception

Catch delete encoded media file exceptions
pull/11175/head
Bond-009 2 months ago committed by GitHub
commit 8070aabe1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save