mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
update new episode creation
This commit is contained in:
parent
8f59f39873
commit
6e01e277d4
3 changed files with 10 additions and 3 deletions
|
@ -112,7 +112,9 @@ namespace MediaBrowser.Providers.TV
|
||||||
IndexNumber = seasonNumber,
|
IndexNumber = seasonNumber,
|
||||||
Id = _libraryManager.GetNewItemId((series.Id + (seasonNumber ?? -1).ToString(_usCulture) + seasonName), typeof(Season)),
|
Id = _libraryManager.GetNewItemId((series.Id + (seasonNumber ?? -1).ToString(_usCulture) + seasonName), typeof(Season)),
|
||||||
IsVirtualItem = isVirtualItem,
|
IsVirtualItem = isVirtualItem,
|
||||||
SeriesId = series.Id
|
SeriesId = series.Id,
|
||||||
|
SeriesName = series.Name,
|
||||||
|
SeriesSortName = series.SortName
|
||||||
};
|
};
|
||||||
|
|
||||||
season.SetParent(series);
|
season.SetParent(series);
|
||||||
|
|
|
@ -56,10 +56,13 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV
|
||||||
if (series != null)
|
if (series != null)
|
||||||
{
|
{
|
||||||
episode.SeriesId = series.Id;
|
episode.SeriesId = series.Id;
|
||||||
|
episode.SeriesName = series.Name;
|
||||||
|
episode.SeriesSortName = series.SortName;
|
||||||
}
|
}
|
||||||
if (season != null)
|
if (season != null)
|
||||||
{
|
{
|
||||||
episode.SeasonId = season.Id;
|
episode.SeasonId = season.Id;
|
||||||
|
episode.SeasonName = season.Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,9 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV
|
||||||
var season = new Season
|
var season = new Season
|
||||||
{
|
{
|
||||||
IndexNumber = new SeasonPathParser(namingOptions, new RegexProvider()).Parse(args.Path, true, true).SeasonNumber,
|
IndexNumber = new SeasonPathParser(namingOptions, new RegexProvider()).Parse(args.Path, true, true).SeasonNumber,
|
||||||
SeriesId = series.Id
|
SeriesId = series.Id,
|
||||||
|
SeriesSortName = series.SortName,
|
||||||
|
SeriesName = series.Name
|
||||||
};
|
};
|
||||||
|
|
||||||
if (season.IndexNumber.HasValue && season.IndexNumber.Value == 0)
|
if (season.IndexNumber.HasValue && season.IndexNumber.Value == 0)
|
||||||
|
|
Loading…
Reference in a new issue