aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.MediaEncoding/Transcoding/TranscodeManager.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2024-03-17 17:38:42 +0100
committerGitHub <noreply@github.com>2024-03-17 17:38:42 +0100
commit8070aabe1bb6fad0f42c33a785ffafe94bcfc329 (patch)
tree362113567fd150bb2a863791db337eb202d86211 /MediaBrowser.MediaEncoding/Transcoding/TranscodeManager.cs
parent9a40a67c603a8352c62a6a1c2a66dfd53df70a17 (diff)
parent78643b4b2a20dd0cf4d3d5f9392c1009180a08d5 (diff)
Merge pull request #11165 from vessd/transcoding-exception
Catch delete encoded media file exceptions
Diffstat (limited to 'MediaBrowser.MediaEncoding/Transcoding/TranscodeManager.cs')
-rw-r--r--MediaBrowser.MediaEncoding/Transcoding/TranscodeManager.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/MediaBrowser.MediaEncoding/Transcoding/TranscodeManager.cs b/MediaBrowser.MediaEncoding/Transcoding/TranscodeManager.cs
index 8bace15c6..5d51a901a 100644
--- a/MediaBrowser.MediaEncoding/Transcoding/TranscodeManager.cs
+++ b/MediaBrowser.MediaEncoding/Transcoding/TranscodeManager.cs
@@ -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);
+ }
}
}