Backport pull request #15220 from jellyfin/release-10.11.z

Skip extracted files in migration if bad timestamp or no access

Original-merge: a305204cfa43a97f255f0dea412f93d02de939c3

Merged-by: crobibero <cody@robibe.ro>

Backported-by: Bond_009 <bond.009@outlook.com>
This commit is contained in:
JJBlue 2025-10-27 15:43:31 -04:00 committed by Bond_009
parent 28b0657608
commit 21f65e2e27

View File

@ -122,6 +122,16 @@ public class MigrateKeyframeData : IDatabaseMigrationRoutine
{
lastWriteTimeUtc = File.GetLastWriteTimeUtc(filePath);
}
catch (ArgumentOutOfRangeException e)
{
_logger.LogDebug("Skipping {Path}: {Exception}", filePath, e.Message);
return null;
}
catch (UnauthorizedAccessException e)
{
_logger.LogDebug("Skipping {Path}: {Exception}", filePath, e.Message);
return null;
}
catch (IOException e)
{
_logger.LogDebug("Skipping {Path}: {Exception}", filePath, e.Message);