mirror of
https://github.com/jellyfin/jellyfin
synced 2024-10-15 12:13:04 +00:00
Enable NFO processing for Extras
- Change test to prevent owned items from using parent NFO. Test is now in MovieNFOSaver, only movie type will use movie.nfo.
This commit is contained in:
parent
b96420b786
commit
99816b07dc
|
@ -404,12 +404,6 @@ namespace MediaBrowser.Providers.Manager
|
|||
return false;
|
||||
}
|
||||
|
||||
// Prevent owned items from reading the same local metadata file as their owner
|
||||
if (!item.OwnerId.Equals(default) && provider is ILocalMetadataProvider)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (includeDisabled)
|
||||
{
|
||||
return true;
|
||||
|
|
|
@ -62,7 +62,8 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
|||
{
|
||||
yield return Path.ChangeExtension(item.Path, ".nfo");
|
||||
|
||||
if (!item.IsInMixedFolder)
|
||||
// only allow movie object to read movie.nfo, not owned videos (which will be itemtype video, not movie)
|
||||
if (!item.IsInMixedFolder && item.ItemType.Equals(typeof(Movie)))
|
||||
{
|
||||
yield return Path.Combine(item.ContainingFolderPath, "movie.nfo");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue