mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Only remove keyframe cache dir if it exists (#13834)
This commit is contained in:
parent
a18d60d2de
commit
0bde7bae05
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user