mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update translations
This commit is contained in:
parent
a5ef758917
commit
da837ffbf0
@ -914,7 +914,7 @@ namespace MediaBrowser.Server.Implementations.Channels
|
|||||||
|
|
||||||
if (query.Limit.HasValue && query.Limit.Value > channelInfo.MaxPageSize.Value)
|
if (query.Limit.HasValue && query.Limit.Value > channelInfo.MaxPageSize.Value)
|
||||||
{
|
{
|
||||||
throw new ArgumentException(string.Format("{0} channel only supports a maximum of {1} records at a time.", channel.Name, channelInfo.MaxPageSize.Value));
|
query.Limit = Math.Min(query.Limit.Value, channelInfo.MaxPageSize.Value);
|
||||||
}
|
}
|
||||||
providerLimit = query.Limit;
|
providerLimit = query.Limit;
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ using MediaBrowser.Model.LiveTv;
|
|||||||
using MediaBrowser.Model.Logging;
|
using MediaBrowser.Model.Logging;
|
||||||
using MediaBrowser.Model.Querying;
|
using MediaBrowser.Model.Querying;
|
||||||
using MediaBrowser.Model.Serialization;
|
using MediaBrowser.Model.Serialization;
|
||||||
|
using MoreLinq;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@ -878,8 +879,10 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|||||||
var programList = programs.ToList();
|
var programList = programs.ToList();
|
||||||
|
|
||||||
var genres = programList.SelectMany(i => i.Genres)
|
var genres = programList.SelectMany(i => i.Genres)
|
||||||
|
.Where(i => !string.IsNullOrWhiteSpace(i))
|
||||||
.DistinctNames()
|
.DistinctNames()
|
||||||
.Select(i => _libraryManager.GetGenre(i))
|
.Select(i => _libraryManager.GetGenre(i))
|
||||||
|
.DistinctBy(i => i.Id)
|
||||||
.ToDictionary(i => i.Name, StringComparer.OrdinalIgnoreCase);
|
.ToDictionary(i => i.Name, StringComparer.OrdinalIgnoreCase);
|
||||||
|
|
||||||
programs = programList.OrderBy(i => i.HasImage(ImageType.Primary) ? 0 : 1)
|
programs = programList.OrderBy(i => i.HasImage(ImageType.Primary) ? 0 : 1)
|
||||||
|
@ -138,6 +138,9 @@
|
|||||||
<Content Include="dashboard-ui\bower_components\webcomponentsjs\webcomponents.min.js">
|
<Content Include="dashboard-ui\bower_components\webcomponentsjs\webcomponents.min.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\cordova\android\localsync.js">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="dashboard-ui\cordova\android\logging.js">
|
<Content Include="dashboard-ui\cordova\android\logging.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
@ -225,9 +228,15 @@
|
|||||||
<Content Include="dashboard-ui\scripts\livetvtunerprovider-m3u.js">
|
<Content Include="dashboard-ui\scripts\livetvtunerprovider-m3u.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\scripts\localsync.js">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="dashboard-ui\scripts\mypreferenceshome.js">
|
<Content Include="dashboard-ui\scripts\mypreferenceshome.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\scripts\mysync.js">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="dashboard-ui\scripts\mysyncsettings.js">
|
<Content Include="dashboard-ui\scripts\mysyncsettings.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user