Skip to content

Commit 63442c2

Browse files
committed
Fixed bug where it wouldn't store an update with more artifacts because the amount of artifacts was hardcoded.
1 parent a86047a commit 63442c2

2 files changed

Lines changed: 10 additions & 13 deletions

File tree

RadarrAPI.sln

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26206.0
4+
VisualStudioVersion = 15.0.26403.3
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RadarrAPI", "RadarrAPI\RadarrAPI.csproj", "{A2E9D642-2A33-464E-8330-135B3BA6B8BF}"
77
EndProject
@@ -17,16 +17,16 @@ Global
1717
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1818
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1919
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
20-
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Debug|x64.ActiveCfg = Debug|x64
21-
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Debug|x64.Build.0 = Debug|x64
22-
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Debug|x86.ActiveCfg = Debug|x86
23-
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Debug|x86.Build.0 = Debug|x86
20+
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Debug|x64.ActiveCfg = Debug|Any CPU
21+
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Debug|x64.Build.0 = Debug|Any CPU
22+
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Debug|x86.ActiveCfg = Debug|Any CPU
23+
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Debug|x86.Build.0 = Debug|Any CPU
2424
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
2525
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Release|Any CPU.Build.0 = Release|Any CPU
26-
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Release|x64.ActiveCfg = Release|x64
27-
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Release|x64.Build.0 = Release|x64
28-
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Release|x86.ActiveCfg = Release|x86
29-
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Release|x86.Build.0 = Release|x86
26+
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Release|x64.ActiveCfg = Release|Any CPU
27+
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Release|x64.Build.0 = Release|Any CPU
28+
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Release|x86.ActiveCfg = Release|Any CPU
29+
{A2E9D642-2A33-464E-8330-135B3BA6B8BF}.Release|x86.Build.0 = Release|Any CPU
3030
EndGlobalSection
3131
GlobalSection(SolutionProperties) = preSolution
3232
HideSolutionNode = FALSE

RadarrAPI/Release/AppVeyor/AppVeyorReleaseSource.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ public class AppVeyorReleaseSource : ReleaseSourceBase
2222
{
2323
private const string AccountName = "galli-leo";
2424
private const string ProjectSlug = "radarr-usby1";
25-
private const int TotalArtifactsCount = 4;
26-
27-
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
2825

2926
private readonly HttpClient _httpClient;
3027

@@ -73,7 +70,7 @@ protected override async Task DoFetchReleasesAsync()
7370
// Filter out incomplete builds
7471
var buildJob = buildExtended.Jobs.FirstOrDefault();
7572
if (buildJob == null ||
76-
buildJob.ArtifactsCount != TotalArtifactsCount ||
73+
buildJob.ArtifactsCount == 0 ||
7774
buildJob.Status != "success" ||
7875
!buildExtended.Started.HasValue) continue;
7976

0 commit comments

Comments
 (0)