mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 09:14:45 +03:00
Only remove keyframe cache dir if it exists (#13834)
This commit is contained in:
@@ -110,8 +110,11 @@ 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);
|
||||||
|
|
||||||
|
if (Directory.Exists(KeyframeCachePath))
|
||||||
|
{
|
||||||
Directory.Delete(KeyframeCachePath, true);
|
Directory.Delete(KeyframeCachePath, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private bool TryGetKeyframeData(BaseItem item, [NotNullWhen(true)] out KeyframeData? data)
|
private bool TryGetKeyframeData(BaseItem item, [NotNullWhen(true)] out KeyframeData? data)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user