Only remove keyframe cache dir if it exists (#13834)

This commit is contained in:
Tim Eisele 2025-04-03 16:47:31 +02:00 committed by GitHub
parent a18d60d2de
commit 0bde7bae05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,8 +110,11 @@ public class MigrateKeyframeData : IDatabaseMigrationRoutine
_logger.LogInformation("Imported keyframes for {Count} items in {Time}", itemCount, sw.Elapsed);
if (Directory.Exists(KeyframeCachePath))
{
Directory.Delete(KeyframeCachePath, true);
}
}
private bool TryGetKeyframeData(BaseItem item, [NotNullWhen(true)] out KeyframeData? data)
{