aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations
diff options
context:
space:
mode:
authorTim Eisele <Ghost_of_Stone@web.de>2025-04-03 16:47:31 +0200
committerGitHub <noreply@github.com>2025-04-03 08:47:31 -0600
commit0bde7bae05de1933a9714870c8e4e6f1a946cd93 (patch)
treee7fb965cf71fbb8ce9c81b3915de61195992e1f9 /Jellyfin.Server/Migrations
parenta18d60d2dedb87735e23e050a2d6d79c395947c1 (diff)
Only remove keyframe cache dir if it exists (#13834)
Diffstat (limited to 'Jellyfin.Server/Migrations')
-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)