diff --git a/SynologyDotNet.AudioStation/AudioStationClient.Artist.cs b/SynologyDotNet.AudioStation/AudioStationClient.Artist.cs index 55a0f3c..aad5eba 100644 --- a/SynologyDotNet.AudioStation/AudioStationClient.Artist.cs +++ b/SynologyDotNet.AudioStation/AudioStationClient.Artist.cs @@ -16,7 +16,8 @@ public partial class AudioStationClient public async Task> ListArtistsAsync(int limit, int offset) { return await Client.QueryListAsync>(SYNO_AudioStation_Artist, "list", limit, offset, - GetLibraryArg()); + GetLibraryArg(), + ("additional", "avg_rating")); } /// @@ -30,6 +31,7 @@ public async Task> ListArtistsAsync(int limit, int { return await Client.QueryListAsync>(SYNO_AudioStation_Artist, "list", limit, offset, GetLibraryArg(), + ("additional", "avg_rating"), ("genre", genre)); } diff --git a/SynologyDotNet.AudioStation/Model/Artist.cs b/SynologyDotNet.AudioStation/Model/Artist.cs index e5b0e11..6696cbf 100644 --- a/SynologyDotNet.AudioStation/Model/Artist.cs +++ b/SynologyDotNet.AudioStation/Model/Artist.cs @@ -7,6 +7,15 @@ public class Artist [JsonProperty("name")] public string Name { get; set; } + [JsonProperty("additional")] + public GenreAdditional Additional { get; set; } + public override string ToString() => Name ?? base.ToString(); } + + public struct ArtistAdditional + { + [JsonProperty("avg_rating")] + public AvgRating AverageRating { get; set; } + } }