mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04: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;
|
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)
|
if (includeDisabled)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
@ -62,7 +62,8 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
|||||||
{
|
{
|
||||||
yield return Path.ChangeExtension(item.Path, ".nfo");
|
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");
|
yield return Path.Combine(item.ContainingFolderPath, "movie.nfo");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user