From 0bde7bae05de1933a9714870c8e4e6f1a946cd93 Mon Sep 17 00:00:00 2001 From: Tim Eisele Date: Thu, 3 Apr 2025 16:47:31 +0200 Subject: [PATCH] Only remove keyframe cache dir if it exists (#13834) --- Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs b/Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs index 1cab943c1a..b8e69db8e7 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)