mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 14:33:06 +03:00
update main projects
This commit is contained in:
@@ -362,20 +362,6 @@ namespace MediaBrowser.Api.UserLibrary
|
||||
var dtos = series
|
||||
.GetEpisodes(user, dtoOptions)
|
||||
.Where(i => i.ParentIndexNumber.HasValue && i.ParentIndexNumber.Value == 0)
|
||||
.OrderBy(i =>
|
||||
{
|
||||
if (i.PremiereDate.HasValue)
|
||||
{
|
||||
return i.PremiereDate.Value;
|
||||
}
|
||||
|
||||
if (i.ProductionYear.HasValue)
|
||||
{
|
||||
return new DateTime(i.ProductionYear.Value, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
||||
}
|
||||
return DateTime.MinValue;
|
||||
})
|
||||
.ThenBy(i => i.SortName)
|
||||
.Select(i => _dtoService.GetBaseItemDto(i, dtoOptions, currentUser));
|
||||
|
||||
return dtos.ToList();
|
||||
|
||||
Reference in New Issue
Block a user