mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04: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,
|
IndexNumber = seasonParserResult.SeasonNumber,
|
||||||
SeriesId = series.Id,
|
SeriesId = series.Id,
|
||||||
SeriesName = series.Name
|
SeriesName = series.Name,
|
||||||
|
Path = seasonParserResult.IsSeasonFolder ? path : args.Parent.Path
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!season.IndexNumber.HasValue || !seasonParserResult.IsSeasonFolder)
|
if (!season.IndexNumber.HasValue || !seasonParserResult.IsSeasonFolder)
|
||||||
|
@ -63,6 +63,16 @@ namespace MediaBrowser.XbmcMetadata.Providers
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override FileSystemMetadata? GetXmlFile(ItemInfo info, IDirectoryService directoryService)
|
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;
|
var seriesPath = _libraryManager.GetItemById(info.ParentId)?.Path;
|
||||||
if (seriesPath is not null)
|
if (seriesPath is not null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user