trap errors getting file stamp

pull/702/head
Luke Pulverenti 11 years ago
parent cd990d8a95
commit 7532ecaf2d

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

Loading…
Cancel
Save