mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 07:10:34 +02:00
fixes #2559 - movie.nfo being ignored
This commit is contained in:
parent
d826b98449
commit
401d82eea7
|
@ -120,10 +120,14 @@ namespace MediaBrowser.Controller.Providers
|
||||||
{
|
{
|
||||||
file = _fileSystem.GetFileInfo(path);
|
file = _fileSystem.GetFileInfo(path);
|
||||||
|
|
||||||
if (file != null)
|
if (file != null && file.Exists)
|
||||||
{
|
{
|
||||||
_fileCache.TryAdd(path, file);
|
_fileCache.TryAdd(path, file);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return file;
|
return file;
|
||||||
|
|
|
@ -51,6 +51,11 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||||
//}
|
//}
|
||||||
|
|
||||||
list.Add(Path.ChangeExtension(item.Path, ".nfo"));
|
list.Add(Path.ChangeExtension(item.Path, ".nfo"));
|
||||||
|
|
||||||
|
if (!item.IsInMixedFolder)
|
||||||
|
{
|
||||||
|
list.Add(Path.Combine(item.ContainingFolderPath, "movie.nfo"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
|
|
Loading…
Reference in a new issue