mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-28 09:45:28 -04:00
Fix DirectoryNotFoundException for backdrop folders in trickplay (#14223)
This commit is contained in:
parent
88332e89c4
commit
5ac0260e5f
1 changed files with 19 additions and 16 deletions
|
@ -196,6 +196,8 @@ public class TrickplayManager : ITrickplayManager
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cleanup old trickplay files
|
// Cleanup old trickplay files
|
||||||
|
if (Directory.Exists(trickplayDirectory))
|
||||||
|
{
|
||||||
var existingFolders = Directory.GetDirectories(trickplayDirectory).ToList();
|
var existingFolders = Directory.GetDirectories(trickplayDirectory).ToList();
|
||||||
var trickplayInfos = await dbContext.TrickplayInfos
|
var trickplayInfos = await dbContext.TrickplayInfos
|
||||||
.AsNoTracking()
|
.AsNoTracking()
|
||||||
|
@ -218,6 +220,7 @@ public class TrickplayManager : ITrickplayManager
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private async Task RefreshTrickplayDataInternal(
|
private async Task RefreshTrickplayDataInternal(
|
||||||
Video video,
|
Video video,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue