check item path for null/empty

pull/702/head
Luke Pulverenti 9 years ago
parent 6f20a8ca05
commit de0f97159b

@ -170,12 +170,15 @@ namespace MediaBrowser.Providers.MediaInfo
}
public bool HasChanged(IHasMetadata item, IDirectoryService directoryService)
{
if (!string.IsNullOrWhiteSpace(item.Path))
{
var file = directoryService.GetFile(item.Path);
if (file != null && file.LastWriteTimeUtc != item.DateModified)
{
return true;
}
}
if (item.SupportsLocalMetadata)
{

Loading…
Cancel
Save