Merge pull request #2078 from MediaBrowser/dev

Dev
pull/702/head
Luke 8 years ago committed by GitHub
commit 6f7d6f76ee

@ -66,7 +66,7 @@ namespace MediaBrowser.Controller.Entities.Movies
{ {
if (IsLegacyBoxSet) if (IsLegacyBoxSet)
{ {
return base.LoadChildren(); return base.GetNonCachedChildren(directoryService);
} }
return new List<BaseItem>(); return new List<BaseItem>();
} }

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

@ -48,6 +48,12 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.Movies
string collectionType, string collectionType,
IDirectoryService directoryService) IDirectoryService directoryService)
{ {
if (parent != null && parent.Path != null && parent.Path.IndexOf("disney", StringComparison.OrdinalIgnoreCase) != -1)
{
var b = true;
var a = b;
}
var result = ResolveMultipleInternal(parent, files, collectionType, directoryService); var result = ResolveMultipleInternal(parent, files, collectionType, directoryService);
if (result != null) if (result != null)
@ -197,6 +203,12 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.Movies
/// <returns>Video.</returns> /// <returns>Video.</returns>
protected override Video Resolve(ItemResolveArgs args) protected override Video Resolve(ItemResolveArgs args)
{ {
if (args.Path != null && args.Path.IndexOf("disney", StringComparison.OrdinalIgnoreCase) != -1)
{
var b = true;
var a = b;
}
var collectionType = args.GetCollectionType(); var collectionType = args.GetCollectionType();
if (IsInvalid(args.Parent, collectionType)) if (IsInvalid(args.Parent, collectionType))

@ -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,9 +43,11 @@ 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)
{ {
season.Name = _config.Configuration.SeasonZeroDisplayName; season.Name = _config.Configuration.SeasonZeroDisplayName;

Loading…
Cancel
Save