mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-03 21:54:26 -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);
|
_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)
|
private bool TryGetKeyframeData(BaseItem item, [NotNullWhen(true)] out KeyframeData? data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user