diff --git a/src/NzbDrone.Automation.Test/Sonarr.Automation.Test.csproj b/src/NzbDrone.Automation.Test/Sonarr.Automation.Test.csproj index bea0c5909..1cf9d0ea6 100644 --- a/src/NzbDrone.Automation.Test/Sonarr.Automation.Test.csproj +++ b/src/NzbDrone.Automation.Test/Sonarr.Automation.Test.csproj @@ -5,7 +5,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/NzbDrone.Integration.Test/ApiTests/RootFolderFixture.cs b/src/NzbDrone.Integration.Test/ApiTests/RootFolderFixture.cs index ae9956b50..cef904870 100644 --- a/src/NzbDrone.Integration.Test/ApiTests/RootFolderFixture.cs +++ b/src/NzbDrone.Integration.Test/ApiTests/RootFolderFixture.cs @@ -29,6 +29,7 @@ public void should_add_and_delete_root_folders() postResponse.Id.Should().NotBe(0); postResponse.FreeSpace.Should().NotBe(0); + postResponse.TotalSpace.Should().NotBe(0); RootFolders.All().Should().OnlyContain(c => c.Id == postResponse.Id); diff --git a/src/Sonarr.Api.V3/RootFolders/RootFolderResource.cs b/src/Sonarr.Api.V3/RootFolders/RootFolderResource.cs index 30ec4b26e..34f08a843 100644 --- a/src/Sonarr.Api.V3/RootFolders/RootFolderResource.cs +++ b/src/Sonarr.Api.V3/RootFolders/RootFolderResource.cs @@ -11,6 +11,7 @@ public class RootFolderResource : RestResource public string Path { get; set; } public bool Accessible { get; set; } public long? FreeSpace { get; set; } + public long? TotalSpace { get; set; } public List UnmappedFolders { get; set; } } @@ -31,6 +32,7 @@ public static RootFolderResource ToResource(this RootFolder model) Path = model.Path.GetCleanPath(), Accessible = model.Accessible, FreeSpace = model.FreeSpace, + TotalSpace = model.TotalSpace, UnmappedFolders = model.UnmappedFolders }; }