diff --git a/src/NzbDrone.Core/AuthorStats/BookStatistics.cs b/src/NzbDrone.Core/AuthorStats/BookStatistics.cs index 3e5f1b9a5..313d9e69d 100644 --- a/src/NzbDrone.Core/AuthorStats/BookStatistics.cs +++ b/src/NzbDrone.Core/AuthorStats/BookStatistics.cs @@ -9,5 +9,6 @@ namespace NzbDrone.Core.AuthorStats public int BookFileCount { get; set; } public int BookCount { get; set; } public long SizeOnDisk { get; set; } + public int TotalBookCount { get; set; } } } diff --git a/src/Readarr.Api.V1/Books/BookStatisticsResource.cs b/src/Readarr.Api.V1/Books/BookStatisticsResource.cs index 79ad8f07c..835ef148a 100644 --- a/src/Readarr.Api.V1/Books/BookStatisticsResource.cs +++ b/src/Readarr.Api.V1/Books/BookStatisticsResource.cs @@ -6,10 +6,10 @@ namespace Readarr.Api.V1.Books { public int BookFileCount { get; set; } public int BookCount { get; set; } - public int TotalTrackCount { get; set; } + public int TotalBookCount { get; set; } public long SizeOnDisk { get; set; } - public decimal PercentOfTracks + public decimal PercentOfBooks { get { @@ -36,7 +36,8 @@ namespace Readarr.Api.V1.Books { BookFileCount = model.BookFileCount, BookCount = model.BookCount, - SizeOnDisk = model.SizeOnDisk + SizeOnDisk = model.SizeOnDisk, + TotalBookCount = model.TotalBookCount }; } }