diff --git a/Ombi.Core/HeadphonesSender.cs b/Ombi.Core/HeadphonesSender.cs index f3dab3850..043ea4e2a 100644 --- a/Ombi.Core/HeadphonesSender.cs +++ b/Ombi.Core/HeadphonesSender.cs @@ -62,7 +62,7 @@ namespace Ombi.Core // Artist is now active // Add album - var albumResult = await Api.AddAlbum(Settings.ApiKey, Settings.FullUri, request.MusicBrainzId); + var albumResult = await Api.AddAlbum(Settings.ApiKey, Settings.FullUri, request.ReleaseId); if (!albumResult) { Log.Error("Couldn't add the album to headphones"); diff --git a/Ombi.Store/RequestedModel.cs b/Ombi.Store/RequestedModel.cs index c54d68e5c..c2130d277 100644 --- a/Ombi.Store/RequestedModel.cs +++ b/Ombi.Store/RequestedModel.cs @@ -68,6 +68,8 @@ namespace Ombi.Store [JsonIgnore] public bool CanApprove => !Approved && !Available; + public string ReleaseId { get; set; } + public bool UserHasRequested(string username) { return AllUsers.Any(x => x.Equals(username, StringComparison.OrdinalIgnoreCase)); diff --git a/Ombi.UI/Modules/SearchModule.cs b/Ombi.UI/Modules/SearchModule.cs index 6e675b959..d1cf52473 100644 --- a/Ombi.UI/Modules/SearchModule.cs +++ b/Ombi.UI/Modules/SearchModule.cs @@ -1513,6 +1513,7 @@ namespace Ombi.UI.Modules { Title = albumInfo.title, MusicBrainzId = albumInfo.id, + ReleaseId = releaseId, Overview = albumInfo.disambiguation, PosterPath = img, Type = RequestType.Album,