mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
Set path for season folders
This commit is contained in:
parent
9a9e8e2648
commit
e6eef8bece
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user