trap errors getting file stamp
This commit is contained in:
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…
Reference in New Issue
Block a user