Shadowghost 1 год назад
Родитель
Сommit
e6eef8bece

+ 2 - 1
Emby.Server.Implementations/Library/Resolvers/TV/SeasonResolver.cs

@@ -54,7 +54,8 @@ namespace Emby.Server.Implementations.Library.Resolvers.TV
                 {
                     IndexNumber = seasonParserResult.SeasonNumber,
                     SeriesId = series.Id,
-                    SeriesName = series.Name
+                    SeriesName = series.Name,
+                    Path = seasonParserResult.IsSeasonFolder ? path : args.Parent.Path
                 };
 
                 if (!season.IndexNumber.HasValue || !seasonParserResult.IsSeasonFolder)

+ 10 - 0
MediaBrowser.XbmcMetadata/Providers/SeasonFromSeriesNfoProvider.cs

@@ -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)
             {