mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
trap errors getting file stamp
This commit is contained in:
parent
cd990d8a95
commit
7532ecaf2d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user