aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs')
-rw-r--r--Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs b/Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs
index 1cab943c1..b8e69db8e 100644
--- a/Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs
+++ b/Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs
@@ -110,7 +110,10 @@ public class MigrateKeyframeData : IDatabaseMigrationRoutine
_logger.LogInformation("Imported keyframes for {Count} items in {Time}", itemCount, sw.Elapsed);
- Directory.Delete(KeyframeCachePath, true);
+ if (Directory.Exists(KeyframeCachePath))
+ {
+ Directory.Delete(KeyframeCachePath, true);
+ }
}
private bool TryGetKeyframeData(BaseItem item, [NotNullWhen(true)] out KeyframeData? data)