update translations

This commit is contained in:
Luke Pulverenti
2014-07-11 00:27:46 -04:00
parent 3cfd765cb4
commit 59de5c0d14
66 changed files with 888 additions and 232 deletions

View File

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