mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-18 20:24:20 +01:00
update translations
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Entities.Audio;
|
||||
using MediaBrowser.Controller.Entities.Movies;
|
||||
using MediaBrowser.Controller.Entities.TV;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Querying;
|
||||
using System;
|
||||
@@ -82,6 +84,30 @@ namespace MediaBrowser.Controller.Playlists
|
||||
return LibraryManager.Sort(songs, user, new[] { ItemSortBy.AlbumArtist, ItemSortBy.Album, ItemSortBy.SortName }, SortOrder.Ascending);
|
||||
}
|
||||
|
||||
// Grab these explicitly to avoid the sorting that will happen below
|
||||
var collection = i as BoxSet;
|
||||
if (collection != null)
|
||||
{
|
||||
var items = user == null
|
||||
? collection.Children
|
||||
: collection.GetChildren(user, true);
|
||||
|
||||
return items
|
||||
.Where(m => !m.IsFolder);
|
||||
}
|
||||
|
||||
// Grab these explicitly to avoid the sorting that will happen below
|
||||
var season = i as Season;
|
||||
if (season != null)
|
||||
{
|
||||
var items = user == null
|
||||
? season.Children
|
||||
: season.GetChildren(user, true);
|
||||
|
||||
return items
|
||||
.Where(m => !m.IsFolder);
|
||||
}
|
||||
|
||||
var folder = i as Folder;
|
||||
|
||||
if (folder != null)
|
||||
@@ -93,12 +119,7 @@ namespace MediaBrowser.Controller.Playlists
|
||||
items = items
|
||||
.Where(m => !m.IsFolder);
|
||||
|
||||
if (!folder.IsPreSorted)
|
||||
{
|
||||
items = LibraryManager.Sort(items, user, new[] { ItemSortBy.SortName }, SortOrder.Ascending);
|
||||
}
|
||||
|
||||
return items;
|
||||
return LibraryManager.Sort(items, user, new[] { ItemSortBy.SortName }, SortOrder.Ascending);
|
||||
}
|
||||
|
||||
return new[] { i };
|
||||
|
||||
Reference in New Issue
Block a user