Set path for season folders

This commit is contained in:
Shadowghost
2024-05-20 01:45:12 +02:00
parent 9a9e8e2648
commit e6eef8bece
2 changed files with 12 additions and 1 deletions

View File

@@ -63,6 +63,16 @@ namespace MediaBrowser.XbmcMetadata.Providers
/// <inheritdoc />
protected override FileSystemMetadata? GetXmlFile(ItemInfo info, IDirectoryService directoryService)
{
var seasonPath = info.Path;
if (seasonPath is not null)
{
var path = Path.Combine(seasonPath, "tvshow.nfo");
if (Path.Exists(path))
{
return directoryService.GetFile(path);
}
}
var seriesPath = _libraryManager.GetItemById(info.ParentId)?.Path;
if (seriesPath is not null)
{