mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
Only remove keyframe cache dir if it exists (#13834)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user