Check location type before refreshing on file stamp change

This commit is contained in:
Luke Pulverenti 2013-05-06 10:49:17 -04:00
parent d80c414c2a
commit bd82103f58

View File

@ -1,6 +1,7 @@
using MediaBrowser.Common.Extensions;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Logging;
using System;
using System.Threading;
@ -140,7 +141,7 @@ namespace MediaBrowser.Controller.Providers
data.ProviderVersion = providerVersion;
// Save the file system stamp for future comparisons
if (RefreshOnFileSystemStampChange)
if (RefreshOnFileSystemStampChange && item.LocationType == LocationType.FileSystem)
{
data.FileStamp = GetCurrentFileSystemStamp(item);
}
@ -210,7 +211,7 @@ namespace MediaBrowser.Controller.Providers
return true;
}
if (RefreshOnFileSystemStampChange && HasFileSystemStampChanged(item, providerInfo))
if (RefreshOnFileSystemStampChange && item.LocationType == LocationType.FileSystem && HasFileSystemStampChanged(item, providerInfo))
{
return true;
}