diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-01 22:53:27 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-01 22:53:27 -0500 |
| commit | e80cbe5b64fa85a814e8e3009c28b1853dc23988 (patch) | |
| tree | 248ce371dff0139de1daf509d2324a1374b29732 /MediaBrowser.Controller | |
| parent | b9d17c9bc765a0c59d81db6277300a6860bf8421 (diff) | |
reduce image indicator sizes
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Movies/BoxSet.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/Movies/BoxSet.cs b/MediaBrowser.Controller/Entities/Movies/BoxSet.cs index 6144bdd710..8623e2ff6c 100644 --- a/MediaBrowser.Controller/Entities/Movies/BoxSet.cs +++ b/MediaBrowser.Controller/Entities/Movies/BoxSet.cs @@ -1,5 +1,6 @@ using MediaBrowser.Model.Configuration; using MediaBrowser.Model.Entities; +using MediaBrowser.Model.Querying; using System; using System.Collections.Generic; @@ -18,7 +19,7 @@ namespace MediaBrowser.Controller.Entities.Movies } public List<Guid> LocalTrailerIds { get; set; } - + /// <summary> /// Gets or sets the remote trailers. /// </summary> @@ -43,5 +44,12 @@ namespace MediaBrowser.Controller.Entities.Movies { return config.BlockUnratedMovies; } + + public override IEnumerable<BaseItem> GetChildren(User user, bool includeLinkedChildren) + { + var children = base.GetChildren(user, includeLinkedChildren); + + return LibraryManager.Sort(children, user, new[] { ItemSortBy.ProductionYear, ItemSortBy.PremiereDate, ItemSortBy.SortName }, SortOrder.Ascending); + } } } |
