Skip to content

Commit

Permalink
fix: fix guard for iterating import folder files
Browse files Browse the repository at this point in the history
- Fixed the guard for iterating import folder files to once again check if the current path is a media folder, but this time also check if it's the physical VFS root attached to the library. With this check in place then it will prevent other locations from triggering a full refresh of the VFS, e.g. old VFS roots and/or other media folders attached to the library that are not part of the VFS.
  • Loading branch information
revam committed Sep 25, 2024
1 parent 0d765de commit 9b3fce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shokofin/Resolvers/VirtualFileSystemService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private void OnLibraryManagerItemRemoved(object? sender, ItemChangeEventArgs e)
}
}
// Iterate files in the "real" media folder.
else {
else if (mediaConfigs.Any(config => path.StartsWith(config.MediaFolderPath)) || path == vfsPath) {
var allPaths = GetPathsForMediaFolder(mediaConfigs);
pathToClean = vfsPath;
allFiles = GetFilesForImportFolder(mediaConfigs, allPaths);
Expand Down

0 comments on commit 9b3fce1

Please sign in to comment.