mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
update translations
This commit is contained in:
@@ -384,11 +384,15 @@ namespace MediaBrowser.Server.Implementations.Channels
|
||||
{
|
||||
var val = width.Value;
|
||||
|
||||
return list
|
||||
var res = list
|
||||
.OrderBy(i => i.Width.HasValue && i.Width.Value <= val)
|
||||
.ThenBy(i => Math.Abs(i.Width ?? 0 - val))
|
||||
.ThenBy(i => Math.Abs((i.Width ?? 0) - val))
|
||||
.ThenByDescending(i => i.Width ?? 0)
|
||||
.ThenBy(list.IndexOf);
|
||||
.ThenBy(list.IndexOf)
|
||||
.ToList();
|
||||
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
return list
|
||||
@@ -533,6 +537,11 @@ namespace MediaBrowser.Server.Implementations.Channels
|
||||
? null
|
||||
: _userManager.GetUserById(new Guid(query.UserId));
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(query.UserId) && user == null)
|
||||
{
|
||||
throw new ArgumentException("User not found.");
|
||||
}
|
||||
|
||||
var channels = _channels;
|
||||
|
||||
if (query.ChannelIds.Length > 0)
|
||||
|
||||
Reference in New Issue
Block a user