trap errors getting file stamp

This commit is contained in:
Luke Pulverenti 2013-07-02 14:24:54 -04:00
parent cd990d8a95
commit 7532ecaf2d

View File

@ -151,9 +151,16 @@ namespace MediaBrowser.Controller.Providers
// Save the file system stamp for future comparisons // Save the file system stamp for future comparisons
if (RefreshOnFileSystemStampChange && item.LocationType == LocationType.FileSystem) if (RefreshOnFileSystemStampChange && item.LocationType == LocationType.FileSystem)
{
try
{ {
data.FileStamp = GetCurrentFileSystemStamp(item); data.FileStamp = GetCurrentFileSystemStamp(item);
} }
catch (IOException ex)
{
Logger.ErrorException("Error getting file stamp for {0}", ex, item.Path);
}
}
item.ProviderData[Id] = data; item.ProviderData[Id] = data;
} }