mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-15 09:42:56 -07:00
attempt at fixing #686
This commit is contained in:
parent
21f3131cb4
commit
a7d396325b
1 changed files with 3 additions and 4 deletions
|
@ -151,8 +151,7 @@ namespace PlexRequests.Core.StatusChecker
|
||||||
var downloadLink = $"{AppveyorApiUrl}/buildjobs/{jobId}/artifacts/{artifactResult.fileName}";
|
var downloadLink = $"{AppveyorApiUrl}/buildjobs/{jobId}/artifacts/{artifactResult.fileName}";
|
||||||
|
|
||||||
var branchDisplay = EnumHelper<Branches>.GetDisplayValue(branch);
|
var branchDisplay = EnumHelper<Branches>.GetDisplayValue(branch);
|
||||||
var localVersion = AssemblyHelper.GetFileVersion();
|
var fileversion = AssemblyHelper.GetFileVersion();
|
||||||
var localVersionExtended = $"{localVersion.Remove(localVersion.Length - 2, 2)}00";
|
|
||||||
|
|
||||||
var model = new StatusModel
|
var model = new StatusModel
|
||||||
{
|
{
|
||||||
|
@ -161,10 +160,10 @@ namespace PlexRequests.Core.StatusChecker
|
||||||
ReleaseTitle = $"Plex Requests {branchDisplay}",
|
ReleaseTitle = $"Plex Requests {branchDisplay}",
|
||||||
NewVersion = branchResult.build.version,
|
NewVersion = branchResult.build.version,
|
||||||
UpdateUri = downloadLink,
|
UpdateUri = downloadLink,
|
||||||
CurrentVersion = localVersionExtended
|
CurrentVersion = fileversion
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!localVersionExtended.Equals(branchResult.build.version, StringComparison.CurrentCultureIgnoreCase))
|
if (!fileversion.Equals(branchResult.build.version, StringComparison.CurrentCultureIgnoreCase))
|
||||||
{
|
{
|
||||||
model.UpdateAvailable = true;
|
model.UpdateAvailable = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue