3.2.30.27
This commit is contained in:
parent
7cebc1f007
commit
07751895a1
|
@ -2206,17 +2206,19 @@ namespace Emby.Server.Implementations
|
||||||
/// <returns>Task{CheckForUpdateResult}.</returns>
|
/// <returns>Task{CheckForUpdateResult}.</returns>
|
||||||
public async Task<CheckForUpdateResult> CheckForApplicationUpdate(CancellationToken cancellationToken, IProgress<double> progress)
|
public async Task<CheckForUpdateResult> CheckForApplicationUpdate(CancellationToken cancellationToken, IProgress<double> progress)
|
||||||
{
|
{
|
||||||
var cacheLength = TimeSpan.FromMinutes(5);
|
|
||||||
var updateLevel = SystemUpdateLevel;
|
var updateLevel = SystemUpdateLevel;
|
||||||
|
var cacheLength = updateLevel == PackageVersionClass.Release ?
|
||||||
|
TimeSpan.FromHours(4) :
|
||||||
|
TimeSpan.FromMinutes(5);
|
||||||
|
|
||||||
var result = await new GithubUpdater(HttpClient, JsonSerializer).CheckForUpdateResult("MediaBrowser",
|
var result = await new GithubUpdater(HttpClient, JsonSerializer).CheckForUpdateResult("MediaBrowser",
|
||||||
"Emby",
|
"Emby",
|
||||||
ApplicationVersion,
|
ApplicationVersion,
|
||||||
updateLevel,
|
updateLevel,
|
||||||
ReleaseAssetFilename,
|
ReleaseAssetFilename,
|
||||||
"MBServer",
|
"MBServer",
|
||||||
UpdateTargetFileName,
|
UpdateTargetFileName,
|
||||||
cacheLength,
|
cacheLength,
|
||||||
cancellationToken).ConfigureAwait(false);
|
cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
HasUpdateAvailable = result.IsUpdateAvailable;
|
HasUpdateAvailable = result.IsUpdateAvailable;
|
||||||
|
|
|
@ -50,7 +50,9 @@ namespace MediaBrowser.Controller.LiveTv
|
||||||
public static double? GetDefaultPrimaryImageAspectRatio(IHasProgramAttributes item)
|
public static double? GetDefaultPrimaryImageAspectRatio(IHasProgramAttributes item)
|
||||||
{
|
{
|
||||||
var serviceName = item.ServiceName;
|
var serviceName = item.ServiceName;
|
||||||
if (!item.IsMovie && !string.Equals(serviceName, EmbyServiceName, StringComparison.OrdinalIgnoreCase))
|
if (!item.IsMovie
|
||||||
|
&& !string.Equals(serviceName, EmbyServiceName, StringComparison.OrdinalIgnoreCase)
|
||||||
|
&& !string.Equals(serviceName, "Next Pvr", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
double value = 16;
|
double value = 16;
|
||||||
value /= 9;
|
value /= 9;
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("3.2.30.26")]
|
[assembly: AssemblyVersion("3.2.30.27")]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user