mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 22:07:13 -04:00
check item path for null/empty
This commit is contained in:
parent
6f20a8ca05
commit
de0f97159b
@ -171,10 +171,13 @@ namespace MediaBrowser.Providers.MediaInfo
|
|||||||
|
|
||||||
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService)
|
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService)
|
||||||
{
|
{
|
||||||
var file = directoryService.GetFile(item.Path);
|
if (!string.IsNullOrWhiteSpace(item.Path))
|
||||||
if (file != null && file.LastWriteTimeUtc != item.DateModified)
|
|
||||||
{
|
{
|
||||||
return true;
|
var file = directoryService.GetFile(item.Path);
|
||||||
|
if (file != null && file.LastWriteTimeUtc != item.DateModified)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.SupportsLocalMetadata)
|
if (item.SupportsLocalMetadata)
|
||||||
|
Loading…
Reference in New Issue
Block a user