fixes #2559 - movie.nfo being ignored

This commit is contained in:
Luke Pulverenti 2017-07-21 15:05:52 -04:00
parent d826b98449
commit 401d82eea7
2 changed files with 10 additions and 1 deletions

View File

@ -120,10 +120,14 @@ namespace MediaBrowser.Controller.Providers
{
file = _fileSystem.GetFileInfo(path);
if (file != null)
if (file != null && file.Exists)
{
_fileCache.TryAdd(path, file);
}
else
{
return null;
}
}
return file;

View File

@ -51,6 +51,11 @@ namespace MediaBrowser.XbmcMetadata.Savers
//}
list.Add(Path.ChangeExtension(item.Path, ".nfo"));
if (!item.IsInMixedFolder)
{
list.Add(Path.Combine(item.ContainingFolderPath, "movie.nfo"));
}
}
return list;