mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 15:28:23 +00:00
Merge pull request #11165 from vessd/transcoding-exception
Catch delete encoded media file exceptions
This commit is contained in:
commit
8070aabe1b
1 changed files with 8 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue