From 1a9e2dfd83dbab2e9a5f277229c5994253fd8a9a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 17 Feb 2014 16:35:08 -0500 Subject: fixed themoviedb search returning no results --- .../EntryPoints/LibraryChangedNotifier.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs') diff --git a/MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs b/MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs index a91033839..2928363e3 100644 --- a/MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs +++ b/MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs @@ -69,6 +69,11 @@ namespace MediaBrowser.Server.Implementations.EntryPoints /// The instance containing the event data. void libraryManager_ItemAdded(object sender, ItemChangeEventArgs e) { + if (e.Item.LocationType == LocationType.Virtual) + { + return; + } + lock (_libraryChangedSyncLock) { if (LibraryUpdateTimer == null) @@ -97,6 +102,11 @@ namespace MediaBrowser.Server.Implementations.EntryPoints /// The instance containing the event data. void libraryManager_ItemUpdated(object sender, ItemChangeEventArgs e) { + if (e.Item.LocationType == LocationType.Virtual) + { + return; + } + lock (_libraryChangedSyncLock) { if (LibraryUpdateTimer == null) @@ -120,6 +130,11 @@ namespace MediaBrowser.Server.Implementations.EntryPoints /// The instance containing the event data. void libraryManager_ItemRemoved(object sender, ItemChangeEventArgs e) { + if (e.Item.LocationType == LocationType.Virtual) + { + return; + } + lock (_libraryChangedSyncLock) { if (LibraryUpdateTimer == null) -- cgit v1.2.3