Skip to content

Commit

Permalink
fix: fix dir exists checks for trickplay directory in vfs
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Nov 5, 2024
1 parent f850154 commit 898be1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Shokofin/Resolvers/VirtualFileSystemService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -927,11 +927,11 @@ public LinkGenerationResult GenerateSymbolicLinks(string sourceLocation, string[
}

var trickplayLocation = Path.ChangeExtension(sourceLocation, ".trickplay");
if (File.Exists(trickplayLocation)) {
if (Directory.Exists(trickplayLocation)) {
var symbolicName = Path.GetFileNameWithoutExtension(symbolicLink);
var symbolicTrickplay = Path.Join(symbolicDirectory, symbolicName + ".trickplay");
result.Paths.Add(symbolicTrickplay);
if (!File.Exists(symbolicTrickplay)) {
if (!Directory.Exists(symbolicTrickplay)) {
result.CreatedTrickplayDirectories++;
if (!preview) {
Logger.LogDebug("Linking {Link} → {LinkTarget}", symbolicTrickplay, trickplayLocation);
Expand Down

0 comments on commit 898be1f

Please sign in to comment.