aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/IO/FileRefresher.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-09-18 12:52:22 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-09-18 12:52:22 -0400
commitcdd79ec7e2fcea806be7a9b50764b1ad473d5970 (patch)
tree07ac58ea57e5750c0749de219220e9635c8fea27 /Emby.Server.Implementations/IO/FileRefresher.cs
parentb01489c40fbd0aa6013f1ed448d902094a186f9f (diff)
update owned items
Diffstat (limited to 'Emby.Server.Implementations/IO/FileRefresher.cs')
-rw-r--r--Emby.Server.Implementations/IO/FileRefresher.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/IO/FileRefresher.cs b/Emby.Server.Implementations/IO/FileRefresher.cs
index 20de8a518..315bee103 100644
--- a/Emby.Server.Implementations/IO/FileRefresher.cs
+++ b/Emby.Server.Implementations/IO/FileRefresher.cs
@@ -209,7 +209,7 @@ namespace Emby.Server.Implementations.IO
// If the item has been deleted find the first valid parent that still exists
while (!_fileSystem.DirectoryExists(item.Path) && !_fileSystem.FileExists(item.Path))
{
- item = item.GetParent();
+ item = item.IsOwnedItem ? item.GetOwner() : item.GetParent();
if (item == null)
{