aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/EntryPoints
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-17 16:35:08 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-17 16:35:08 -0500
commit1a9e2dfd83dbab2e9a5f277229c5994253fd8a9a (patch)
tree157ac5c2ee2e226560d04d61fef79445b23c231d /MediaBrowser.Server.Implementations/EntryPoints
parent4ebba2b2e87e33f083c095957a2294b6f8ae3828 (diff)
fixed themoviedb search returning no results
Diffstat (limited to 'MediaBrowser.Server.Implementations/EntryPoints')
-rw-r--r--MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs15
1 files changed, 15 insertions, 0 deletions
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
/// <param name="e">The <see cref="ItemChangeEventArgs"/> instance containing the event data.</param>
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
/// <param name="e">The <see cref="ItemChangeEventArgs"/> instance containing the event data.</param>
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
/// <param name="e">The <see cref="ItemChangeEventArgs"/> instance containing the event data.</param>
void libraryManager_ItemRemoved(object sender, ItemChangeEventArgs e)
{
+ if (e.Item.LocationType == LocationType.Virtual)
+ {
+ return;
+ }
+
lock (_libraryChangedSyncLock)
{
if (LibraryUpdateTimer == null)