mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #11165 from vessd/transcoding-exception
Catch delete encoded media file exceptions
This commit is contained in:
commit
8070aabe1b
@ -723,9 +723,16 @@ public sealed class TranscodeManager : ITranscodeManager, IDisposable
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach (var file in _fileSystem.GetFilePaths(path, true))
|
foreach (var file in _fileSystem.GetFilePaths(path, true))
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
_fileSystem.DeleteFile(file);
|
_fileSystem.DeleteFile(file);
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.LogError(ex, "Error deleting encoded media cache file {Path}", path);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user